Microchip® Advanced Software Framework

packetqueue.c File Reference

    Packet queue management
Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se
#include "sys/ctimer.h"
#include "net/packetqueue.h"

Functions

static void remove_queued_packet (void *item)
 
Packet queue functions.
void packetqueue_init (struct packetqueue *q)
 Initialize a packet queue. More...
 
int packetqueue_enqueue_packetbuf (struct packetqueue *q, clock_time_t lifetime, void *ptr)
 Enqueue a packetbuf on a packet queue. More...
 
struct packetqueue_itempacketqueue_first (struct packetqueue *q)
 Access the first item on the packet buffer. More...
 
void packetqueue_dequeue (struct packetqueue *q)
 Remove the first item on the packet buffer. More...
 
int packetqueue_len (struct packetqueue *q)
 Get the length of the packet queue. More...
 
Packet queue item functions
struct queuebufpacketqueue_queuebuf (struct packetqueue_item *i)
 Access the queuebuf in a packet queue item. More...
 
void * packetqueue_ptr (struct packetqueue_item *i)
 Access the user-defined pointer in a packet queue item. More...