Getting Physical address of a buffer
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:date:message-id :subject:from:to:content-type; bh=aEIvDGuxAaMXK2Ij9SjtNOF7/Fiq/7vhdfyFKBBAkp4=; b=TTPI1cKeJbMDdlRcNUFW/voBsi7mtsYCyCpThgPh7Yg0vkOrWc2PJt8FXm3zxtjgxJ +4iSo28cG3kLtPWDrkG9YCZ/Xzwj9bvohVI+hqJNN69Lq+McQ036i24HvZaEdvlPqreT oC74l550PwdqZtrxEcEuHc3KYjkwU0vfEaFP4= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=jhaC6SOWpeiyepffruVhhfdzPyhL3TucvUhJ7GBGXEPqIwFVksMZtJ1iUKnXO6zKvb rorKJmbeMZ2AhS0dFEmqh7XeezvWmjuLS87yQMX3/mJByBqSxW5dEPYhQG3zdbgaJ69n BkZATS0mN9WmsfED/ICqSOcZN6pESg40wArMs= 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/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
shailesh jain