Re: mem_actual in Tiger
Re: mem_actual in Tiger
- Subject: Re: mem_actual in Tiger
- From: Andrew Gallatin <email@hidden>
- Date: Fri, 10 Jun 2005 13:39:21 -0400 (EDT)
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden