MachCore
The core module for interacting with the Mach kernel.
import MachCore
Module information
- Declarations
- 1313
- Symbols
- 1594
Licenses
Core Concepts
struct Mach
The Mach kernel.
class Task
A task (port).
class Port
A port
name
in theowningTask
’s name space.class Message
A message.
The Bootstrap Server
The bootstrap server is a task for obtaining send rights to specific services.
Read More
Additional Concepts
class Thread
A thread in a task.
class Host
A host.
class Processor
A processor in a host.
class ProcessorSet
A set of processors in a host.
Timing
class Clock
A clock.
class ClockControl
A clock control port.
class Alarm
An alarm on a clock.
class Timer
A timer.
class Semaphore
A semaphore.
Darwin/mach_timespec
Others API’s
Exceptions
Exceptions are raised in the Mach kernel by sending messages to exception ports.
Read MoreVirtual Memory
The Mach kernel provides multiple facilities for managing virtual memory.
Read MoreVouchers
Vouchers are kernel objects that can be sent along with messages.
Read More
Calling the Kernel
static func call(@autoclosure () -> kern_return_t
) throws Calls the kernel and throws an error if the call fails.