arch/m68k/mach-mcfv4e/include/proc/net/queue.h File Reference


Detailed Description


Functions

void queue_init (QUEUE *)
int queue_isempty (QUEUE *)
void queue_add (QUEUE *, QNODE *)
QNODE * queue_remove (QUEUE *)
QNODE * queue_peek (QUEUE *)
void queue_move (QUEUE *, QUEUE *)


Function Documentation

void queue_add ( QUEUE *  q,
QNODE *  node 
)

Add an item to the end of the queue.

Parameters:
[in] q Pointer to queue structure
[in] node New node to add to the queue

Referenced by nbuf_add(), nbuf_free(), and nbuf_init().

void queue_init ( QUEUE *  q  ) 

Initialize the specified queue to an empty state.

Parameters:
[in] q Pointer to queue structure

Referenced by nbuf_init().

int queue_isempty ( QUEUE *  q  ) 

Check for an empty queue.

Parameters:
[in] q Pointer to queue structure
Returns:
1 if Queue is empty 0 otherwise

Referenced by queue_add(), queue_move(), and queue_remove().

void queue_move ( QUEUE *  dst,
QUEUE *  src 
)

Move entire contents of one queue to the other.

Parameters:
[in] src Pointer to source queue
[in] dst Pointer to destination queue

QNODE* queue_peek ( QUEUE *  q  ) 

Peek into the queue and return pointer to first (oldest) entry.

The queue is not modified

Parameters:
[in] q Pointer to queue structure
Returns:
Node at head of queue - NULL if queue is empty

Referenced by nbuf_debug_dump().

QNODE* queue_remove ( QUEUE *  q  ) 

Remove and return first (oldest) entry from the specified queue.

Parameters:
[in] q Pointer to queue structure
Returns:
Node at head of queue - NULL if queue is empty

Referenced by nbuf_alloc(), nbuf_flush(), and nbuf_remove().


Generated on Fri Dec 25 14:13:15 2009 for barebox by  doxygen 1.5.6