Re: Allocating non-pageable memory.
Re: Allocating non-pageable memory.
- Subject: Re: Allocating non-pageable memory.
- From: Quinn <email@hidden>
- Date: Wed, 17 Mar 2010 14:02:56 +0000
At 18:05 +0600 17/3/10, Inso Reiges wrote:
I have to store sensitive data inside my KEXT, so i don't want this
memory to be swapped out on the disk page file. Currently i use zone
allocator and OSMalloc to allocate different parts of structures that
contain this data. I am relatively new to darwin so can you please
advise if there is anything i need to worry about when using these
methods?
Inside the kernel non-pageable (wired) memory is the default. For
example, to get pageable memory from OSMalloc, you have to create a
special tag (with the OSMT_PAGEABLE flag) and use that for your
allocations.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
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