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 *) |
| void queue_add | ( | QUEUE * | q, | |
| QNODE * | node | |||
| ) |
Add an item to the end of the queue.
| [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.
| [in] | q | Pointer to queue structure |
Referenced by nbuf_init().
| int queue_isempty | ( | QUEUE * | q | ) |
Check for an empty queue.
| [in] | q | Pointer to queue structure |
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.
| [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
| [in] | q | Pointer to queue structure |
Referenced by nbuf_debug_dump().
| QNODE* queue_remove | ( | QUEUE * | q | ) |
Remove and return first (oldest) entry from the specified queue.
| [in] | q | Pointer to queue structure |
Referenced by nbuf_alloc(), nbuf_flush(), and nbuf_remove().
1.5.6