X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/3e170ce000f1506b7b5d2c5c7faec85ceabb573d..bca245acd4c03fd752d1a45f011ad495e60fe53d:/osfmk/mach/mach_host.defs diff --git a/osfmk/mach/mach_host.defs b/osfmk/mach/mach_host.defs index bc44a2842..a1b55f5eb 100644 --- a/osfmk/mach/mach_host.defs +++ b/osfmk/mach/mach_host.defs @@ -161,18 +161,8 @@ routine kmod_get_info( host : host_t; out modules : kmod_args_t); -/* - * Returns information about the memory allocation zones. - * Supported in all kernels.. - * - * DEPRECATED! Use mach_zone_info() instead. - */ -routine host_zone_info( - host : host_priv_t; - out names : zone_name_array_t, - Dealloc; - out info : zone_info_array_t, - Dealloc); + +skip; /* was host_zone_info */ /* * Returns information about the global VP table. @@ -224,7 +214,12 @@ routine mach_memory_object_memory_entry_64( /* * Return statistics from this host. */ -routine host_statistics( +routine +#ifdef KERNEL_SERVER +host_statistics_from_user( +#else +host_statistics( +#endif host_priv : host_t; flavor : host_flavor_t; out host_info_out : host_info_t, CountInOut); @@ -242,7 +237,12 @@ routine host_lockgroup_info( /* * Return 64-bit statistics from this host. */ -routine host_statistics64( +routine +#ifdef KERNEL_SERVER +host_statistics64_from_user( +#else +host_statistics64( +#endif host_priv : host_t; flavor : host_flavor_t; out host_info64_out : host_info64_t, CountInOut); @@ -250,7 +250,7 @@ routine host_statistics64( /* * Returns information about the memory allocation zones. * Data returned is compatible with various caller and kernel - * address space sizes (unlike host_zone_info()). + * address space sizes. */ routine mach_zone_info( host : host_priv_t; @@ -275,7 +275,11 @@ skip; * Create a new voucher by running a series of commands against * pairs of resource attributes. */ +#if !KERNEL && !LIBSYSCALL_INTERFACE +routine _kernelrpc_host_create_mach_voucher( +#else routine host_create_mach_voucher( +#endif host : host_t; recipes : mach_voucher_attr_raw_recipe_array_t; out voucher : ipc_voucher_t); @@ -305,8 +309,8 @@ routine host_register_well_known_mach_voucher_attr_manager( * Update the global ATM diagnostic flag, readable from the commpage */ routine host_set_atm_diagnostic_flag( - host_priv : host_priv_t; - in diagnostic_flag : uint32_t); + host : host_t; + in diagnostic_flag : uint32_t); #if !KERNEL && LIBSYSCALL_INTERFACE routine host_get_atm_diagnostic_flag( @@ -325,4 +329,77 @@ routine mach_memory_info( out memory_info : mach_memory_info_array_t, Dealloc); +/* + * Update the global multiuser flags, readable from the commpage + */ +routine host_set_multiuser_config_flags( + host_priv : host_priv_t; + in multiuser_flags : uint32_t); + +#if !KERNEL && LIBSYSCALL_INTERFACE +routine host_get_multiuser_config_flags( + host : host_t; + out multiuser_flags : uint32_t); +#else +skip; +#endif // !KERNEL && LIBSYSCALL_INTERFACE + +#if !KERNEL && LIBSYSCALL_INTERFACE +routine host_check_multiuser_mode( + host : host_t; + out multiuser_mode : uint32_t); +#else +skip; +#endif // !KERNEL && LIBSYSCALL_INTERFACE + +/* + * Returns information about a specific zone. + * The zone name is passed in via the argument name, + * info returns the zone info. + */ +routine mach_zone_info_for_zone( + host : host_priv_t; + name : mach_zone_name_t; + out info : mach_zone_info_t); + +#ifdef PRIVATE +/* + * Returns information about the largest zone. + * name returns the zone name, info returns the zone info. + */ +routine mach_zone_info_for_largest_zone( + host : host_priv_t; + out name : mach_zone_name_t; + out info : mach_zone_info_t); +#else +skip; +#endif + +#ifdef PRIVATE +/* + * Returns names of zones that have zlog enabled. + */ +routine mach_zone_get_zlog_zones( + host : host_priv_t; + out names : mach_zone_name_array_t, + Dealloc); +#else +skip; +#endif + +#ifdef PRIVATE +/* + * Returns BTLog records for a specific zone. + * The zone name is passed in via the argument name, + * recs returns an array of zone_btrecord_t's. + */ +routine mach_zone_get_btlog_records( + host : host_priv_t; + name : mach_zone_name_t; + out recs : zone_btrecord_array_t, + Dealloc); +#else +skip; +#endif + /* vim: set ft=c : */