Re: Allocate contiguous wired memory and obtain physical address
Re: Allocate contiguous wired memory and obtain physical address
- Subject: Re: Allocate contiguous wired memory and obtain physical address
- From: Michael Smith <email@hidden>
- Date: Sun, 21 Dec 2008 10:39:46 -0800
On Dec 21, 2008, at 9:43 AM, John D. wrote:
I would like to know what KPIs are exported to kernel extensions for
allocating contiguous wired memory (non pageable) and then obtain its
physical address.
Do the IOKit IOMalloc functions provide this functionality?
This functionality is provided by IOBufferMemoryDescriptor.
IOMallocContiguous only gets you half of the picture. Note that you
should not attempt to allocate contiguous memory on your work path, as
the scan/relocation process can be exceptionally expensive once the
system has been up and running. It's best shortly after system
startup, and acceptable at module load time or during other
exceptional events (hardware arrival, for example).
= Mike
_______________________________________________
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