getbuf.c File Reference

Implements the functions: getbuf. More...

#include <stddef.h>
#include <semaphore.h>
#include <interrupt.h>
#include <bufpool.h>

Include dependency graph for getbuf.c:

Go to the source code of this file.

Functions

void * getbuf (int poolid)
 Acquire buffer from initialized pool.


Detailed Description

Implements the functions: getbuf.

Id
getbuf.c 1447 2008-08-12 19:23:34Z mschul

Definition in file getbuf.c.


Function Documentation

void* getbuf ( int  poolid  ) 

Acquire buffer from initialized pool.

Parameters:
poolid index of pool in bptab
Returns:
pointer to buffer on success, SYSERR on failure

Definition at line 18 of file getbuf.c.

References disable, isbadpool, restore, SYSERR, and wait().

Referenced by allocRxBuffer(), and etherWrite().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Wed Aug 27 06:08:20 2008 for Embedded XINU by  doxygen 1.5.5