Re: Equivalent of Linux kmap on Mac OS
Re: Equivalent of Linux kmap on Mac OS
- Subject: Re: Equivalent of Linux kmap on Mac OS
- From: "Shawn Erickson" <email@hidden>
- Date: Wed, 7 Mar 2007 14:51:34 -0800
On 3/7/07, Bhavesh Davda <email@hidden> wrote:
Hi Rob,
Sure sounds like I can
1. IOMemoryDescriptor::initWithAddress(userAddr,..., kernel_task) to
map the user address into the kernel map, and
2. prepare() to wire the address down.
Have I got that right? But then, what's the kernel virtual address I
can use from other tasks running in the KEXT to access this kernel
mapped address?
... create myMemoryDescriptor with something ...
...
IOMemoryMap* map = myMemoryDescriptor->map();
IOVirtualAddress address = map->getVirtualAddress();
...
map->release(); // when you no longer need the mapping
-Shawn
_______________________________________________
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