Hello!
Can kmalloc( ) fail when invoked with __GFP_WAIT flag (which is
implied by GFP_KERNEL)?
And for what reason it may fail?
Thanks.
Igor Zhbanov <[email protected]> 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
--
[email protected] -- Speaking for myself only.