What is IOMalloc() Size limit for its safe use?
What is IOMalloc() Size limit for its safe use?
- Subject: What is IOMalloc() Size limit for its safe use?
- From: simran charley <email@hidden>
- Date: Thu, 15 May 2014 10:43:14 +0530
Requirement:-
- I want to allocate memory up to ~2MB(not shared/internal use) in kernel space.
This memory will get allocation/deallocation call frequently.
I have referred following lines from book "os_x_and_ios_kernel_programming"
"Memory from IOMalloc() is intended for small and fast allocations and is not suitable for mapping into user space. Because the memory reserved for IOMalloc()
comes from a small fixed-size pool, excessive use of IOMalloc()
can drain this pool and panic the kernel if the pool is exhausted".
My question is:-
- If IOMalloc is used for small allocation then what is exact size limit for this function to use it safely?
Other limitation of IOMalloc()
function for 32/64 architecture ?
Any help would be greatly appreciated!
Thanks and regards
Simran
_______________________________________________
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