tcpip_try_callback() is only used within LwIP.
 
Symbols
loading...
Files
loading...

tcpip_try_callback() function

Call a specific function in the thread context of tcpip_thread for easy access synchronization. A function called in that way may access lwIP core code without fearing concurrent access. Does NOT block when the request cannot be posted because the tcpip_mbox is full, but returns ERR_MEM instead. Can be called from interrupt context. @see tcpip_callback

Syntax

err_t tcpip_try_callback(tcpip_callback_fn function,     void *ctx);
Implemented in tcpip.c:344

Arguments

function

the function to call

ctx

parameter passed to f

Return value

ERR_OK if the function was called, another err_t if not

References

LocationReferrerText
tcpip.c:345
tcpip_try_callback(tcpip_callback_fn function, void *ctx)
tcpip.h:82
err_t tcpip_try_callback(tcpip_callback_fn function, void *ctx);
tcpip.c:642pbuf_free_callback()
return tcpip_try_callback(pbuf_free_int, p);
tcpip.c:655mem_free_callback()
return tcpip_try_callback(mem_free, m);

Call Tree

Functions calling tcpip_try_callback()
Functions called by tcpip_try_callback()
tcpip_try_callback()
Data read by tcpip_try_callback()
Data written by tcpip_try_callback()
tcpip_try_callback()
tcpip_try_callback()::msg
all items filtered out
Type of tcpip_try_callback()
tcpip_try_callback()
all items filtered out