Functions | |
| int | nbuf_init (void) |
| NBUF * | nbuf_alloc (void) |
| void | nbuf_free (NBUF *) |
| NBUF * | nbuf_remove (int) |
| void | nbuf_add (int, NBUF *) |
| void nbuf_add | ( | int | q, | |
| NBUF * | nbuf | |||
| ) |
Add a network buffer to the specified queue.
Parameters: q The index that identifies the queue to add the buffer to
| NBUF* nbuf_alloc | ( | void | ) |
Allocate a network buffer from the free list.
Return Value: Pointer to a free network buffer NULL if none are available
| void nbuf_debug_dump | ( | void | ) |
| void nbuf_flush | ( | void | ) |
Return all the allocated memory to the heap.
| void nbuf_free | ( | NBUF * | nbuf | ) |
Add the specified network buffer back to the free list.
Parameters: nbuf Buffer to add back to the free list
Referenced by nbuf_reset().
| int nbuf_init | ( | void | ) |
Initialize all the network buffer queues.
Return Value: 0 success 1 failure
| NBUF* nbuf_remove | ( | int | q | ) |
Remove a network buffer from the specified queue.
Parameters: q The index that identifies the queue to pull the buffer from
Referenced by nbuf_reset().
| void nbuf_reset | ( | void | ) |
Put all the network buffers back into the free list.
1.5.6