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=EhXJr6Ar8lObdG4G3oABBnhshS4tBL+lSlEyXsbjgovZGclxJ8wH4BHCahDWbBrnpeodxP80voqtj/Z39roJnIejaH3gllYCGY0u3VMSLrenX4QyAZXtCriyXhIv6SpJyGGg00acuxSvQZdaUzfzyHyVHD3kjERKmtwhqmyrGJg= 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=br22Agf2dyblib6ahVpPtGLpEdeJJODcsq39/VuzD5ceHEthQEm8DN+oWQ4bmbqBPsxrxK8fS8OV6bYWxYbslxScUcjl9ksW5lAyoJw6v5dvXayfIfnu7KtVBloH3APKEm1pw3d+STxMJiD7ok6NhIakZ3Qe0LyDYVDghGEzUcQ= 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... On 3/7/07, Bhavesh Davda <bhavesh.davda@gmail.com> wrote: This email sent to site_archiver@lists.apple.com
participants (1)
-
Shawn Erickson