The kmalloc()
& vmalloc()
functions are a simple interface for obtaining kernel memory in byte-sized chunks.
The kmalloc()
function guarantees that the pages are physically contiguous (and virtually contiguous).
The vmalloc()
function works in a similar fashion to kmalloc()
, except it allocates memory that is only virtually contiguous and not necessarily physically contiguous.