Files | |
file | pktq.h |
Send queue for Network interface API definitions | |
file | type.h |
Send queue for Network interface API type 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. | |
unsigned | gnrc_netif_pktq_usage (void) |
Returns the overall usage of the packet queue resources. | |
static gnrc_pktsnip_t * | gnrc_netif_pktq_get (gnrc_netif_t *netif) |
Gets a packet from the packet send queue of a network interface. | |
void | gnrc_netif_pktq_sched_get (gnrc_netif_t *netif) |
Schedule a dequeue notification to network interface. | |
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. | |
static bool | gnrc_netif_pktq_empty (gnrc_netif_t *netif) |
Check if a network interface's packet send queue is empty. | |
|
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. |
unsigned gnrc_netif_pktq_usage | ( | void | ) |
Returns the overall usage of the packet queue resources.