udi_queue_t(3udi)


Queue element structure

SYNOPSIS

#include <udi.h>

typedef struct udi_queue {

struct udi_queue *next;

struct udi_queue *prev;

} udi_queue_t;

MEMBERS next is a pointer to the next element in the queue.

prev is a pointer to the previous element in the queue.

DESCRIPTION The udi_queue_t structure is the queue element structure. UDI queues are linked together via these structures. The list head used to reference a particular queue is also a structure of this type, and is the only permanent piece of memory associated with a given queue.

21.2.2 Queuing Functions

There are two queuing functions defined in UDI that provide high-performance basic queuing and dequeuing functionality: udi_enqueue, which inserts a specified element at the head of the specified queue, and udi_dequeue, which removes the specified element from the queue. The macros that follow build on top of these two functions to provide a rich set of queue management utilities.


UDI Core Specification Contents