* Can kmalloc( ) with __GFP_WAIT flag fail?
@ 2009-06-05 10:59 Igor Zhbanov
2009-06-05 11:06 ` Andi Kleen
0 siblings, 1 reply; 2+ messages in thread
From: Igor Zhbanov @ 2009-06-05 10:59 UTC (permalink / raw)
To: linux-kernel
Hello!
Can kmalloc( ) fail when invoked with __GFP_WAIT flag (which is
implied by GFP_KERNEL)?
And for what reason it may fail?
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Can kmalloc( ) with __GFP_WAIT flag fail?
2009-06-05 10:59 Can kmalloc( ) with __GFP_WAIT flag fail? Igor Zhbanov
@ 2009-06-05 11:06 ` Andi Kleen
0 siblings, 0 replies; 2+ messages in thread
From: Andi Kleen @ 2009-06-05 11:06 UTC (permalink / raw)
To: Igor Zhbanov; +Cc: linux-kernel
Igor Zhbanov <izh1979@gmail.com> 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@linux.intel.com -- Speaking for myself only.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-06-05 11:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-05 10:59 Can kmalloc( ) with __GFP_WAIT flag fail? Igor Zhbanov
2009-06-05 11:06 ` Andi Kleen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox