What is the use of GFP_USER flag in kmalloc?
问题 As far as I understand, the use in the GFP_USER flag (in the call to kmalloc ) is used to allocate memory for user space. Does it means that the allocated page are in kernel space, which are accessible to user? Does these pages required to be mmapp 'ed in user space or the address is directly accessible to user. If they need to mmapp then what is difference between GFP_USER and GFP_KERNEL ? 回答1: Brief explanation can be found in kernel sources: GFP_KERNEL is typical for kernel-internal