Re: Equivalent of Linux kmap on Mac OS
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=q/aheEDBtFb//JtqdZkNhxAbFMZJmkbhOdDF7NRW9lqlFyf45uc7ioTXhDFgNPB7hPKwBKrd7J8uQNtBuRJ6J1ipj055d3eG3aHWKtt3Vu0tmrZgKs+my+CqrwifktT+GIy/09vsNjpGtTIZRxvjjuzkEuCzzhbmb33hl764eyQ= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=X/sB8CJpkQ99tpQVYVchxEoDHMINwBoUMo43NS9732PdHmzzK4NRWrQFNQW2iBcjArtIa+I4ueuttGaiEKNYzX8HRiBUCIJnPsucfTfsqi2vNE8fMPOgkgdhNb0B8M4fPHBz/cuFr1/EX6qPDWNWWAuvlY1xKqk772W3pZLQeGw= 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. 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... Otherwise the deal's off. No more helping. This email sent to site_archiver@lists.apple.com
participants (1)
-
Bhavesh Davda