site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=C08ovIZKCrTz8WEAYYqA47kitXoX1LOFEWpMUgLbiTc=; b=RreZrZ1u0FwFkUysuZLO3u/0VGMSY1KlQ25ySYI40m9123UZH+kGO+PgBhshd0dLow lLH7m4sE7JW9UB+PEZJkacug9woocCDBKq+n8Z2qteORirbNBlkmM/WBlygYh5ROOyiW p+MNRhSnQohE3FhIRFTKyA2545BQXa0z+mrmY= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=UpESLzP3wkscwNPVawqhuLiugZzCjDIXXxyo0hZ+yiCMfICVHRdqW6uLVmL/2QHHNC JuiwH4BAoyUmOgUxqcBp4S5eSu7VwhRQfLKCfBHtvD9lwIarFDKtJj53XjvdBzHBullO 1Wsrlx1cVu/pe7/SEJA3lfKlnfF7lWhhn8Kv8= @Shantonu - I was under the impression that IO* KPIs should only be used by IOKit driver ? @Mike - Virtualization. If you care to involve hypervisor in your memory tricks then virtual address of the guest buffer is useless. You want physical address. @Others - I will check KPIs that you guys mention. Seems like most device drivers that care about DMA would probably be an IOKit driver else what I am asking for seems like very basic requirement. Shailesh Jain On Fri, Aug 6, 2010 at 9:18 AM, Michael Smith <drivers@mu.org> wrote:
Why would you like to get the physical address of this buffer? What do you think it will tell you? = Mike On Aug 5, 2010, at 11:10 AM, shailesh jain wrote:
Hello again! I have a kernel extension (which is not an IOKit driver) that uses OSMalloc_ KPI to allocate buffer. I pass in OSMT_DEFAULT so that buffers that it returns are wired to memory. I have a use case where in I would like to get physical address of the first byte of the buffer. I understand that buffer will not be contiguous in Physical memory and I am fine with that. Do we have such an interface ---
something like: physAddr = virt_to_phys(buffer); // Gives physical address of first byte of the buffer
-- Shailesh Jain _______________________________________________ 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/drivers%40mu.org
This email sent to drivers@mu.org
-- The lyf so short, the craft so long to lerne -- Chaucer
-- Shailesh Jain _______________________________________________ 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... This email sent to site_archiver@lists.apple.com