site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Apr 10, 2008, at 8:00 AM, Timur Alperovich wrote: Hey Timur, Where does the physical address in inStruct->offset come from? getPhysicalSegment()? The address is passed in from userspace. I wrote a little daemon that simply goes from 0x0 to the highest possible address (I figure that out by getting the maximum amount of ram on the machine through a sysctl call) and pass it to the kernel extension. The kernel then returns a 32-bit hash value for each page. I thought that should work ok, but is it a problem? Yes, that's definitely a problem. = Mike _______________________________________________ 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... There's no guarantee that physical memory is addressed starting at zero, or that the kernel owns all of it. You aren't allowed to do that; unless the kernel gives you physical memory, leave it alone. This email sent to site_archiver@lists.apple.com