What i want to know if i write a Device driver that has kmalloc statements require allocate some string variable then which flag i should use?
If you are not running in interrupt context, either GFP_KERNEL or GFP_USER should be ok. IIRC the difference between them is that GFP_USER has lower priority and cannot access highmem.
--Swapnil
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/