3 ms·
Well, C's default heap allocation API is not suitable for kernel mode either. Compare libc's malloc and the kernel's kmalloc, with the fine-grained control [1]
by tetromino_ 9y ago
Well, C's default heap allocation API is not suitable for kernel mode either. Compare libc's malloc and the kernel's kmalloc, with the fine-grained control [1] over what kind of allocation to perform.
[1] https://github.com/spotify/linux/blob/master/include/linux/gfp.h https://github.com/spotify/linux/blob/master/include/linux/g...