site_archiver@lists.apple.com Delivered-To: Darwin-kernel@lists.apple.com Herb Petschauer writes:
Hey,
We've got a solution that works great in Panther and we've started the transition to Tiger. I've hit a few snags in the porting effort, the most imporant one is the formerly exported variable:
mem_actual
This variable still exists in the Tiger Darwin source but is no longer exported. Nor do I see any wrapper functions that I can call to get this variable's value. I popped into the DTS lab at WWDC and after some grepping they told me I could get the value from user space using sysctl but that doesn't necessarily help.
So... help? Any suggestions, thoughts, etc.?
For at least some things, you can use sysctl from the kernel too. hw.memsize is declared as a SYSCTL_QUAD so it should handle memory above 4GB. I use that in my driver with no problems seen so far.. Drew _______________________________________________ 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)
-
Andrew Gallatin