mkpool.c File Reference

Implements the functions: mkpool. More...

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

Include dependency graph for mkpool.c:

Go to the source code of this file.

Functions

int mkpool (uint bufsize, int numbufs)
 Acquire heap storage and subdivide into buffers.


Detailed Description

Implements the functions: mkpool.

Id
mkpool.c 1484 2008-08-15 19:43:04Z brylow

Definition in file mkpool.c.


Function Documentation

int mkpool ( uint  bufsize,
int  numbufs 
)

Acquire heap storage and subdivide into buffers.

Parameters:
bufsize size of individual buffers in bytes
numbufs count of bufsize buffers in pool
Returns:
index into bptab of initialized pool on success SYSERR on failure

Definition at line 20 of file mkpool.c.

References disable, memget(), restore, roundword, semcreate(), signaln(), and SYSERR.

Referenced by etherOpen().

Here is the call graph for this function:

Here is the caller graph for this function:


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