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


Detailed Description


Functions

int nbuf_init (void)
NBUF * nbuf_alloc (void)
void nbuf_free (NBUF *)
NBUF * nbuf_remove (int)
void nbuf_add (int, NBUF *)


Function Documentation

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   ) 

Display all the nbuf queues.

Referenced by nbuf_init().

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.


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