Re: Can kmalloc( ) with __GFP_WAIT flag fail?
From: Andi Kleen
Date: Fri Jun 05 2009 - 07:06:24 EST
Igor Zhbanov <izh1979@xxxxxxxxx> writes:
> Hello!
>
> Can kmalloc( ) fail when invoked with __GFP_WAIT flag (which is
> implied by GFP_KERNEL)?
Yes it can fail.
> And for what reason it may fail?
When the kernel is out of memory.
-Andi
--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
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/