When will kalloc() return NULL?
When will kalloc() return NULL?
- Subject: When will kalloc() return NULL?
- From: Stacey <email@hidden>
- Date: Fri, 09 May 2008 13:12:08 -0500
Hi,
Given kalloc(size) where 0 < size < kalloc_max_pre_rounded (small
enough to be handled by zalloc)...
When it is safe to assume that kalloc(size) (aka. kalloc_canblock(size,
TRUE)) will never return NULL or, in other words, block until memory
resources are available? I see examples in the Xnu code that make both
assumptions.
If it is never safe to assume kalloc(size) will never return NULL is
there a kernel memory allocator call that will block until memory is
available.
Sorry if this question has been asked before.
Thanks in advance,
-stacey.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden