Re: [PATCH] kmalloc man page before 2.6.17

From: Paulo Marques
Date: Fri May 26 2006 - 09:22:44 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/