Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mach system calls from carbon?



Robert Purves wrote:


// subtract from 4GB return (vm_size_t) (1LL << 32) - total;

This assumes the full 4GB is actually available...

You should also be able to get the total number of allocated pages with
task_info(TASK_BASIC_INFO) without an exhaustive survey of the address space.
See http://www.gnu.org/software/hurd/gnumach-doc/mach_7.html#SEC64 for the
call. struct task_basic_info is declared in mach/task_info.h.



_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Mach system calls from carbon? (From: Robert Purves <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.