1. Kmalloc returns physically contiguous memory whereas malloc returns only virtual contiguous memory.
2. Memory allocated by Kmalloc can't be swapped as it is reserved and locked.
malloc is used in user space.
kmalloc is used in kernel space, vmalloc can also be used here.
kmalloc and vmalloc are allowed in kernel space whereas malloc is allowed in user space.
2. Memory allocated by Kmalloc can't be swapped as it is reserved and locked.
malloc is used in user space.
kmalloc is used in kernel space, vmalloc can also be used here.
kmalloc and vmalloc are allowed in kernel space whereas malloc is allowed in user space.
You really make it appear so easy along with your presentation however I in finding this matter to be
ReplyDeleteactually something which I think I would by no means understand.
It kind of feels too complicated and extremely wide for me.
I am having a look forward for your next post, I'll
try to get the cling of it!
my blog post; internet providers kenvir ky