Re: kmalloc usage question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux