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: "Bhavesh Davda" <email@hidden>
- Date: Fri, 9 Mar 2007 09:56:13 -0800
Whoa, hold it right there.
Before we help you any more, I want a promise out of you. This chunk
of memory is *small*, right? A couple of pages at most, right? And
you set this up once and then keep using it for a long time, right?
Right. Right. Right.
That's why I don't want to get into the business of map/unmap in the
kext every time I want to access this chunk of memory. I also don't
want to use any reader/writer accessors to access the memory without
mapping it, because I plan on using atomic operations on the chunk of
memory.
Otherwise the deal's off. No more helping.
Now that the deal's not off, please, I'm eagerly awaiting a suggestion
that would really work in my scenario. I've been following this e-mail
thread, and so far I think only you've truly understood what I would
like to do :)
The kernel is *not* in the business of handing out chunks of its
virtual address space to arbitrary processes.
Understood.
As Terry suggests, you are better off allocating the space in the
kernel, and then vending mappings of that space to user tasks as they
come and go.
I understand, and I wish I could do that. But I'm dealing with a
special requirement here.
I'm still curious as to why you think you want to share memory like
this; there are better ways to do most of the common things that I
can think of.
My lips are sealed :)
= Mike
--
Bhavesh P. Davda
_______________________________________________
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