zones
The zones in the host.
var zones: [Mach.Zone] { get throws }The zones in the host.
var zones: [Mach.Zone] { get throws }import MachCoreThe core module for interacting with the Mach kernel.
class HostA host.
struct MachThe Mach kernel.
struct ZoneA zone.
static var current: Self { get }The current host.
var bootInfo: String { get throws }The boot info for the host.
var calendarClock: Mach.Clock { get throws }The calendar clock (POSIX time).
var exceptionPorts: [Mach.ExceptionPort] { get throws }All the exception ports for the host.
var hostPort: Mach.Host { get throws }The unprivileged host port.
var hostPortPrivileged: Mach.Host { get throws }The privileged host port.
var info: Mach.HostInfoManager { get }The host’s info.
var isPrivileged: Bool { get throws }Wether the host port is privileged.
var kernelVersion: String { get throws }The kernel version for the host.
var lockGroupInfos: [lockgroup_info] { get throws }Information about the lock groups on the host.
var memoryInfos: [any Mach.MemoryInfo] { get throws }The memory infos in the host.
var pageSize: vm_size_t { get throws }The page size for the host.
var processorSets: [Mach.ProcessorSet] { get throws }The processor sets in the host.
var processors: [Mach.Processor] { get throws }The processors in the host.
var statistics: Mach.HostStatisticsManager { get }The host’s statistics.
var systemClock: Mach.Clock { get throws }The system clock (uptime).
func addExceptionPort(_ exceptionPort: Mach.ExceptionPort) throws Adds an exception port to the host.
func clock(_ type: Mach.ClockType) throws -> Mach.Clock Obtains a clock.
func exceptionPorts(mask: Mach.ExceptionMask) throws -> [Mach.ExceptionPort] Gets the exception ports for the host that catch the exception types specified by the mask.
func getDefaultMemoryManager() throws -> Mach.MemoryManager Gets the default memory manager for the host.
func getSpecialPort<PortType>(_ specialPort: Mach.HostSpecialPort, as type: PortType.Type = PortType.self) throws -> PortType where PortType : Mach.Port Gets a special port for the host.
func kextRequest(_ request: [String : Any]) throws -> [String : Any]? Performs a kext request.
func kextRequest(_ request: UnsafeRawBufferPointer, logSpec: OSKextLogSpec = 0, responsePointer: UnsafeMutablePointer<UnsafeRawBufferPointer?>? = nil, logsPointer: UnsafeMutablePointer<UnsafeRawBufferPointer?>? = nil, throwOnInnerFailure: Bool = true) throws Performs a kext request.
func kextRequest(predicate: Mach.Host.KextRequestPredicate, arguments: [String : Any] = [:]) throws -> [String : Any]? Performs a kext request.
func reboot(option: Mach.HostRebootOption = .init(rawValue: 0)) throws Reboots the host.
func setDefaultMemoryManager(to manager: Mach.MemoryManager) throws Sets the default memory manager for the host.
func setSpecialPort(_ specialPort: Mach.HostSpecialPort, to port: Mach.Port) throws Sets a special port for the host.
func swapExceptionPort(with exceptionPort: Mach.ExceptionPort) throws -> [Mach.ExceptionPort] Swaps an exception port for the host and returns the previous exception ports.
struct KextRequestPredicateA kext request predicate.