next up previous
Next: Standard C library Up: ORB Integration into Kernel Previous: Linux Networking API

Memory Allocation

The Linux kernel provides the functions kmalloc() and kfree() for allocating memory. These functions are basically equivalent to their libc counterparts, with one small exception: kmalloc() can only be used to allocate less than 128Kb of memory. If more memory than what is provided by kmalloc is needed, then the allocation must be done directly, by requesting memory pages from the kernel. But all things being equal, this isn't especially difficult.