Comparing kmalloc, vmalloc, and malloc Memory Allocation Functions
All three memory allocation functions kmalloc, vmalloc, and malloc allocate memory in units of bytes. kmalloc void * kmalloc(size_t requested_size, gfp_t gfp_flags) This function returns a pointer to a memory block of at least the requested size. The allocated memory is physically contiguous and ret...