|
Barrelfish
|
Functions | |
| err_t | tcpip_input (struct pbuf *p, struct netif *inp) |
| err_t | tcpip_callback_with_block (void(*f)(void *ctx), void *ctx, u8_t block) |
| err_t | tcpip_timeout (u32_t msecs, sys_timeout_handler h, void *arg) |
| err_t | tcpip_untimeout (sys_timeout_handler h, void *arg) |
| void | tcpip_init (void(*initfunc)(void *), void *arg) |
| err_t | pbuf_free_callback (struct pbuf *p) |
| err_t | mem_free_callback (void *m) |
Sequential API Main thread module
| err_t mem_free_callback | ( | void * | m | ) |
A simple wrapper function that allows you to free heap memory from interrupt context.
| m | the heap memory to free |
| err_t pbuf_free_callback | ( | struct pbuf * | p | ) |
A simple wrapper function that allows you to free a pbuf from interrupt context.
| p | The pbuf (chain) to be dereferenced. |
| err_t tcpip_callback_with_block | ( | void(*)(void *ctx) | f, |
| void * | ctx, | ||
| u8_t | block | ||
| ) |
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.
| f | the function to call |
| ctx | parameter passed to f |
| block | 1 to block until the request is posted, 0 to non-blocking mode |
| void tcpip_init | ( | void(*)(void *) | initfunc, |
| void * | arg | ||
| ) |
Initialize this module:
| initfunc | a function to call when tcpip_thread is running and finished initializing |
| arg | argument to pass to initfunc |
| err_t tcpip_input | ( | struct pbuf * | p, |
| struct netif * | inp | ||
| ) |
Pass a received packet to tcpip_thread for input processing
| p | the received packet, p->payload pointing to the Ethernet header or to an IP header (if netif doesn't got NETIF_FLAG_ETHARP flag) |
| inp | the network interface on which the packet was received |
| err_t tcpip_timeout | ( | u32_t | msecs, |
| sys_timeout_handler | h, | ||
| void * | arg | ||
| ) |
call sys_timeout in tcpip_thread
| msec | time in miliseconds for timeout |
| h | function to be called on timeout |
| arg | argument to pass to timeout function h |
| err_t tcpip_untimeout | ( | sys_timeout_handler | h, |
| void * | arg | ||
| ) |
call sys_untimeout in tcpip_thread
| msec | time in miliseconds for timeout |
| h | function to be called on timeout |
| arg | argument to pass to timeout function h |
1.8.11