[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] how to use netif_find() correctly
From: |
Sylvain Rochet |
Subject: |
Re: [lwip-users] how to use netif_find() correctly |
Date: |
Wed, 26 Jan 2022 16:45:45 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
Hi Massimiliano,
On Wed, Jan 26, 2022 at 04:28:54PM +0100, Massimiliano Cialdi wrote:
> hello
>
> I must have the *netif given its name. I used the netif_find() function,
> but got an assert:
> "Function called without core lock".
> Among netif functions there is no wrapper for netif_find().
> What is the correct way to proceed?
>
> should i write my own wrapper, in one of my files, copying from a netifapi
> function? Or should I use the locks? And how should I do that?
With LWIP_TCPIP_CORE_LOCKING enabled:
LOCK_TCPIP_CORE();
netif_find();
UNLOCK_TCPIP_CORE();
Sylvain
signature.asc
Description: Digital signature