* kmalloc usage question
@ 2005-01-08 9:17 cranium2003
0 siblings, 0 replies; only message in thread
From: cranium2003 @ 2005-01-08 9:17 UTC (permalink / raw)
To: linux-kernel
Hello,
I read kmalloc kernel-api.pdf page and found that
* %GFP_USER - Allocate memory on behalf of user. May
sleep.
*
* %GFP_KERNEL - Allocate normal kernel ram. May
sleep.
*
* %GFP_ATOMIC - Allocation will not sleep. Use
inside interrupt handlers.
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?
As apis said GFP_USER. But if i want my kernel module
to be require to work in kernel always then can it be
ok to use GFP_KERNEL??
What are then disadvantages to that???
regards,
cranium
__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-08 10:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-08 9:17 kmalloc usage question cranium2003
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).