Messages in this thread | | | Date | Fri, 26 May 2006 14:23:26 +0100 | From | Paulo Marques <> | Subject | Re: [PATCH] kmalloc man page before 2.6.17 |
| |
Paul Drynoff wrote: > [...] > + * %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.
I find this comment to be a little misleading. GFP_ATOMIC should be used on _any_ code that can not sleep, including sections protected by a spinlock and sections that run with IRQ's disabled, no?
-- Paulo Marques - www.grupopie.com
Pointy-Haired Boss: I don't see anything that could stand in our way. Dilbert: Sanity? Reality? The laws of physics? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |