Initializernmggithub.kass 3.2.4MachCore
init(host:)
Creates a host info manager.
init(host: Mach.Host)
Creates a host info manager.
init(host: Mach.Host)
import MachCore
The core module for interacting with the Mach kernel.
struct HostInfoManager
A host info manager.
struct Mach
The Mach kernel.
class Host
A host.
let port: Mach.Host
The host port.
var basic: host_basic_info { get throws }
The basic info of the host.
var canHasDebugger: host_can_has_debugger_info { get throws }
Whether the host can has debugger.
var debugInfo: Mach.HostDebugInfoInternal { get throws }
The debug info of the host.
var preferredUserSpaceArchitecture: host_preferred_user_arch { get throws }
The preferred user space architecture of the host.
var priority: host_priority_info { get throws }
The priority info of the host.
var resourceSizes: kernel_resource_sizes { get throws }
The resource sizes for the host.
var scheduling: host_sched_info { get throws }
The scheduling info of the host.
var supportsMachMsgTraps: () { get throws }
Whether the host supports Mach message traps.
var supportsSemaphoreTraps: () { get throws }
Whether the host supports semaphore traps.
var vmPurgeable: vm_purgeable_info_t { get throws }
Information about purgeable virtual memory on the host.
func get<DataType>(_ flavor: HostInfoFlavor, as type: DataType.Type = DataType.self) throws -> DataType where DataType : BitwiseCopyable
Gets the host’s information.