Section: Kernel Functions (9)
Updated: Aug 3, 1997
kmalloc, kfree - allocate and free pieces of memory
void * kmalloc (size_t size, int priority);
void kfree (void * __ptr);
function allocates a piece of memory.
is the number of bytes that will be allocated. The parameter
indicates the importance and type of the memory request. Some
possible values are GFP_DMA, GFP_ATOMIC, GFP_BUFFER, and GFP_NFS.
function releases a piece of memory that is passed as the
returns a pointer to the newly allocated memory.
If there is an error, NULL is returned instead.
Kirk Petersen (email@example.com