Files | |
file | type.h |
Send queue for Network interface API type definitions | |
file | pktq.h |
Send queue for Network interface API definitions | |
Data Structures | |
struct | gnrc_netif_pktq_t |
A packet queue for Network interface API with a de-queue timer. More... | |
Functions | |
int | gnrc_netif_pktq_put (gnrc_netif_t *netif, gnrc_pktsnip_t *pkt) |
Puts a packet into the packet send queue of a network interface. More... | |
static gnrc_pktsnip_t * | gnrc_netif_pktq_get (gnrc_netif_t *netif) |
Gets a packet from the packet send queue of a network interface. More... | |
void | gnrc_netif_pktq_sched_get (gnrc_netif_t *netif) |
Schedule a dequeue notification to network interface. More... | |
int | gnrc_netif_pktq_push_back (gnrc_netif_t *netif, gnrc_pktsnip_t *pkt) |
Pushes a packet back to the head of the packet send queue of a network interface. More... | |
static bool | gnrc_netif_pktq_empty (gnrc_netif_t *netif) |
Check if a network interface's packet send queue is empty. More... | |
|
inlinestatic |
|
inlinestatic |
int gnrc_netif_pktq_push_back | ( | gnrc_netif_t * | netif, |
gnrc_pktsnip_t * | pkt | ||
) |
Pushes a packet back to the head of the packet send queue of a network interface.
netif != NULL
pkt != NULL
[in] | netif | A network interface. May not be NULL. |
[in] | pkt | A packet. May not be NULL. |
int gnrc_netif_pktq_put | ( | gnrc_netif_t * | netif, |
gnrc_pktsnip_t * | pkt | ||
) |
Puts a packet into the packet send queue of a network interface.
netif != NULL
pkt != NULL
[in] | netif | A network interface. May not be NULL. |
[in] | pkt | A packet. May not be NULL. |
void gnrc_netif_pktq_sched_get | ( | gnrc_netif_t * | netif | ) |
Schedule a dequeue notification to network interface.
The notification will be scheduled in CONFIG_GNRC_NETIF_PKTQ_TIMER_US microseconds.
netif != NULL
The signaling message can be used to send the next message in gnrc_netif_pktq_t::queue.
[in] | netif | A network interface. May not be NULL. |