driverkit

package
v0.11.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package driverkit provides purego-based Go bindings for the macOS DriverKit framework.

Apple documentation: https://developer.apple.com/documentation/driverkit

Index

Constants

View Source
const (
	THREAD_ABORTSAFE     = 0
	THREAD_INTERRUPTIBLE = 0
	THREAD_UNINT         = 0
)
View Source
const (
	KIODMACommandPerformOperationOptionRead  = 1
	KIODMACommandPerformOperationOptionWrite = 2
	KIODMACommandPerformOperationOptionZero  = 4
)
View Source
const (
	KIODispatchQueueMethodsNotSynchronized = 2
	KIODispatchQueueReentrant              = 1
)
View Source
const (
	KIOInterruptDispatchSourceTypeEdge  = 0
	KIOInterruptDispatchSourceTypeLevel = 1
)
View Source
const (
	KIOInterruptSourceAbsoluteTime   = 0
	KIOInterruptSourceContinuousTime = 65536
	KIOInterruptSourceIndexMask      = 65535
)
View Source
const (
	KIOMaxBusStall10usec = 10000
	KIOMaxBusStall20usec = 20000
	KIOMaxBusStall25usec = 25000
	KIOMaxBusStall30usec = 30000
	KIOMaxBusStall40usec = 40000
	KIOMaxBusStall5usec  = 5000
	KIOMaxBusStallNone   = 0
)
View Source
const (
	KIOMemoryDirectionIn        = 1
	KIOMemoryDirectionInOut     = 3
	KIOMemoryDirectionNone      = 0
	KIOMemoryDirectionOut       = 2
	KIOMemoryDirectionOutIn     = 3
	KIOMemoryDisableCopyOnWrite = 16
)
View Source
const (
	KIOMemoryMapCacheModeCopyback     = 512
	KIOMemoryMapCacheModeDefault      = 0
	KIOMemoryMapCacheModeInhibit      = 256
	KIOMemoryMapCacheModeRealTime     = 2048
	KIOMemoryMapCacheModeWriteThrough = 1024
	KIOMemoryMapFixedAddress          = 1
	KIOMemoryMapGuardedDefault        = 0
	KIOMemoryMapGuardedLarge          = 12
	KIOMemoryMapGuardedMask           = 28
	KIOMemoryMapGuardedNone           = 4
	KIOMemoryMapGuardedSmall          = 8
	KIOMemoryMapReadOnly              = 2
)
View Source
const (
	KIORPCMessageError       = 64
	KIORPCMessageKernel      = 4
	KIORPCMessageLocalHost   = 2
	KIORPCMessageObjectRefs  = 16
	KIORPCMessageOneway      = 8
	KIORPCMessageOnqueue     = 32
	KIORPCMessageRemote      = 1
	KIORPCMessageSimpleReply = 128
)
View Source
const (
	KIORPCVersion190615      = 1302509196
	KIORPCVersion190615Reply = 1302509197
)
View Source
const (
	KIOReportCopyChannelData  = 1
	KIOReportTraceChannelData = 2
)
View Source
const (
	KIOReportDisable           = 0
	KIOReportEnable            = 1
	KIOReportGetDimensions     = 2
	KIOReportNotifyHubOnChange = 16
	KIOReportTraceOnChange     = 32
)
View Source
const (
	KIOReportFormatHistogram   = 3
	KIOReportFormatSimple      = 1
	KIOReportFormatSimpleArray = 4
	KIOReportFormatState       = 2
	KIOReportInvalidFormat     = 0
)
View Source
const (
	KIOReportQuantityCPUInstrs   = 102
	KIOReportQuantityCapacitance = 6
	KIOReportQuantityCurrent     = 4
	KIOReportQuantityData        = 9
	KIOReportQuantityEnergy      = 3
	KIOReportQuantityEventCount  = 100
	KIOReportQuantityFrequency   = 8
	KIOReportQuantityInductance  = 7
	KIOReportQuantityPacketCount = 101
	KIOReportQuantityPower       = 2
	KIOReportQuantityTemperature = 10
	KIOReportQuantityTime        = 1
	KIOReportQuantityUndefined   = 0
	KIOReportQuantityVoltage     = 5
)
View Source
const (
	KIOServiceHaltStatePowerOff = 1
	KIOServiceHaltStateRestart  = 2
)
View Source
const (
	KIOServiceNotificationTypeLast       = 1
	KIOServiceNotificationTypeMatched    = 1
	KIOServiceNotificationTypeNone       = 4294967295
	KIOServiceNotificationTypeTerminated = 0
)
View Source
const (
	KIOServicePMAssertionCPUBit             = 1
	KIOServicePMAssertionForceFullWakeupBit = 2048
)
View Source
const (
	KIOServicePowerCapabilityLPW = 131072
	KIOServicePowerCapabilityLow = 65536
	KIOServicePowerCapabilityOff = 0
	KIOServicePowerCapabilityOn  = 2
)
View Source
const (
	KIOTimerClockMachAbsoluteTime   = 200
	KIOTimerClockMachContinuousTime = 196
	KIOTimerClockMonotonicRaw       = 132
	KIOTimerClockRealTime           = 128
	KIOTimerClockUptimeRaw          = 136
	KIOTimerClockWallTime           = 128
)
View Source
const (
	KMicrosecondScale = 1000
	KMillisecondScale = 1000000
	KNanosecondScale  = 1
	KSecondScale      = 1000000000
	KTickScale        = 10000000
)
View Source
const (
	KOSCollectionTypeArray         = 2
	KOSCollectionTypeBoolean       = 11
	KOSCollectionTypeData          = 10
	KOSCollectionTypeDictionary    = 1
	KOSCollectionTypeNumber        = 4
	KOSCollectionTypeSerialization = 13
	KOSCollectionTypeSet           = 3
	KOSCollectionTypeString        = 9
	KOSCollectionTypeSymbol        = 8
)
View Source
const (
	KIOConnectMethodVarOutputSize = -3
)
View Source
const (
	KIODMACommandCompleteDMANoOptions = 0
)
View Source
const (
	KIODMACommandCreateNoOptions = 0
)
View Source
const (
	KIODMACommandPrepareForDMANoOptions = 0
)
View Source
const (
	KIODMACommandSpecificationNoOptions = 0
)
View Source
const (
	KIODispatchQueueSleepReuseEvent = 256
)
View Source
const (
	KIODispatchQueueWakeupAll = 1
)
View Source
const (
	KIORPCMessageIDKernel = 9223372036854775808
)
View Source
const (
	KIOServiceSearchPropertyParents = 1
)
View Source
const (
	KIOUserClientAsyncArgumentsCountMax = 16
)
View Source
const (
	KIOUserClientAsyncReferenceCountMax = 16
)
View Source
const (
	KIOUserClientMemoryReadOnly = 1
)
View Source
const (
	KIOUserClientMethodArgumentsCurrentVersion = 2
)
View Source
const (
	KIOUserClientScalarArrayCountMax = 16
)
View Source
const (
	KIOUserClientVariableStructureSize = 4294967295
)
View Source
const (
	KOSArrayAppend = 18446744073709551615
)
View Source
const (
	KOSClassCanRemote = 1
)

Variables

This section is empty.

Functions

func BuiltinTrap

func BuiltinTrap()

C function: __builtin_trap

func Crc32

func Crc32(crc uint32, buf unsafe.Pointer, size uint) uint32

C function: crc32

func DEQUEUEELTCLEANUP

func DEQUEUEELTCLEANUP(elt *QueueEntry)

C function: __DEQUEUE_ELT_CLEANUP

func EnqueueHead

func EnqueueHead(que *QueueEntry, elt *QueueEntry)

C function: enqueue_head

func EnqueueTail

func EnqueueTail(que *QueueEntry, elt *QueueEntry)

C function: enqueue_tail

func GIOBufferMemoryDescriptorMetaClass

func GIOBufferMemoryDescriptorMetaClass() *int32

func GIOCommandMetaClass

func GIOCommandMetaClass() *int32

func GIOCommandPoolMetaClass

func GIOCommandPoolMetaClass() *int32

func GIODMACommandMetaClass

func GIODMACommandMetaClass() *int32

func GIODataQueueDispatchSourceMetaClass

func GIODataQueueDispatchSourceMetaClass() *int32

func GIODispatchQueueMetaClass

func GIODispatchQueueMetaClass() *int32

func GIODispatchSourceMetaClass

func GIODispatchSourceMetaClass() *int32

func GIOHistogramReporterMetaClass

func GIOHistogramReporterMetaClass() *int32

func GIOInterruptDispatchSourceMetaClass

func GIOInterruptDispatchSourceMetaClass() *int32

func GIOMemoryDescriptorMetaClass

func GIOMemoryDescriptorMetaClass() *int32

func GIOMemoryMapMetaClass

func GIOMemoryMapMetaClass() *int32

func GIOReportLegendMetaClass

func GIOReportLegendMetaClass() *int32

func GIOReporterMetaClass

func GIOReporterMetaClass() *int32

func GIOServiceMetaClass

func GIOServiceMetaClass() *int32

func GIOServiceNotificationDispatchSourceMetaClass

func GIOServiceNotificationDispatchSourceMetaClass() *int32

func GIOServiceStateNotificationDispatchSourceMetaClass

func GIOServiceStateNotificationDispatchSourceMetaClass() *int32

func GIOSimpleReporterMetaClass

func GIOSimpleReporterMetaClass() *int32

func GIOStateReporterMetaClass

func GIOStateReporterMetaClass() *int32

func GIOTimerDispatchSourceMetaClass

func GIOTimerDispatchSourceMetaClass() *int32

func GIOUserClientMetaClass

func GIOUserClientMetaClass() *int32

func GOSActionMetaClass

func GOSActionMetaClass() *int32

func GOSAction_IOUserClient_KernelCompletionMetaClass

func GOSAction_IOUserClient_KernelCompletionMetaClass() *int32

func GOSArrayMetaClass

func GOSArrayMetaClass() *int32

func GOSBooleanMetaClass

func GOSBooleanMetaClass() *int32

func GOSBundleMetaClass

func GOSBundleMetaClass() *int32

func GOSCollectionMetaClass

func GOSCollectionMetaClass() *int32

func GOSContainerMetaClass

func GOSContainerMetaClass() *int32

func GOSDataMetaClass

func GOSDataMetaClass() *int32

func GOSDictionaryMetaClass

func GOSDictionaryMetaClass() *int32

func GOSMappedFileMetaClass

func GOSMappedFileMetaClass() *int32

func GOSNumberMetaClass

func GOSNumberMetaClass() *int32

func GOSObjectMetaClass

func GOSObjectMetaClass() *int32

func GOSOrderedSetMetaClass

func GOSOrderedSetMetaClass() *int32

func GOSSerializationMetaClass

func GOSSerializationMetaClass() *int32

func GOSSetMetaClass

func GOSSetMetaClass() *int32

func GOSStringMetaClass

func GOSStringMetaClass() *int32

func IOBufferMemoryDescriptor_Class

func IOBufferMemoryDescriptor_Class() uintptr

func IOCallOnce

func IOCallOnce(flag *IOCallOnceFlag, block func())

@function IOCallOnce @abstract Executes a block object only once @param flag A pointer to a IOCallOnceFlag structure that is used to test whether the block has completed or not. @param block The block object to execute once.

func IOCommandPool_Class

func IOCommandPool_Class() uintptr

func IOCommand_Class

func IOCommand_Class() uintptr

func IODMACommand_Class

func IODMACommand_Class() uintptr

func IODataQueueDispatchSource_Class

func IODataQueueDispatchSource_Class() uintptr

func IODelay

func IODelay(us uint64)

func IODispatchQueue_Class

func IODispatchQueue_Class() uintptr

func IODispatchSource_Class

func IODispatchSource_Class() uintptr

func IOFixedDivide

func IOFixedDivide(a int, b int) int

func IOFixedMultiply

func IOFixedMultiply(a int, b int) int

func IOFree

func IOFree(address unsafe.Pointer, length uint)

func IOHistogramReporter_Class

func IOHistogramReporter_Class() uintptr

func IOInterruptDispatchSource_Class

func IOInterruptDispatchSource_Class() uintptr

func IOLockAlloc

func IOLockAlloc() unsafe.Pointer

func IOLockAssert

func IOLockAssert(lock unsafe.Pointer, type_ IOLockAssertState)

func IOLockFree

func IOLockFree(lock unsafe.Pointer)

func IOLockLock

func IOLockLock(lock unsafe.Pointer)

func IOLockTryLock

func IOLockTryLock(lock unsafe.Pointer) bool

func IOLockUnlock

func IOLockUnlock(lock unsafe.Pointer)

func IOLogBuffer

func IOLogBuffer(title string, buffer unsafe.Pointer, size uint)

func IOLogv

func IOLogv(format string, ap string) int

func IOMalloc

func IOMalloc(length uint) unsafe.Pointer

func IOMallocTyped

func IOMallocTyped(length uint, type_id uint64) unsafe.Pointer

func IOMallocZero

func IOMallocZero(length uint) unsafe.Pointer

func IOMallocZeroTyped

func IOMallocZeroTyped(length uint, type_id uint64) unsafe.Pointer

func IOMemoryDescriptor_Class

func IOMemoryDescriptor_Class() uintptr

func IOMemoryMap_Class

func IOMemoryMap_Class() uintptr

func IOParseBootArgNumber

func IOParseBootArgNumber(arg_string string, arg_ptr unsafe.Pointer, max_len int) bool

func IOParseBootArgString

func IOParseBootArgString(arg_string string, arg_ptr string, strlen int) bool

func IORWLockAlloc

func IORWLockAlloc() unsafe.Pointer

func IORWLockFree

func IORWLockFree(lock unsafe.Pointer)

func IORWLockRead

func IORWLockRead(lock unsafe.Pointer)

@function IORWLockRead @abstract Lock a read/write lock for read. @discussion Lock the lock for read, allowing multiple readers when there are no writers. If the lock is held for write, block waiting for its unlock. Locking the lock recursively from one thread, for read or write, can result in deadlock. @param lock Pointer to the allocated lock.

func IORWLockUnlock

func IORWLockUnlock(lock unsafe.Pointer)

@function IORWLockUnlock @abstract Unlock a read/write lock. @discussion Undo one call to IORWLockRead or IORWLockWrite. Results are undefined if the caller has not locked the lock. @param lock Pointer to the allocated lock.

func IORWLockWrite

func IORWLockWrite(lock unsafe.Pointer)

@function IORWLockWrite @abstract Lock a read/write lock for write. @discussion Lock the lock for write, allowing one writer exlusive access. If the lock is held for read or write, block waiting for its unlock. Locking the lock recursively from one thread, for read or write, can result in deadlock. @param lock Pointer to the allocated lock.

func IORecursiveConditionLockAlloc

func IORecursiveConditionLockAlloc() unsafe.Pointer

func IORecursiveConditionLockFree

func IORecursiveConditionLockFree(lock unsafe.Pointer)

func IORecursiveConditionLockHaveLock

func IORecursiveConditionLockHaveLock(lock unsafe.Pointer) bool

func IORecursiveConditionLockLock

func IORecursiveConditionLockLock(lock unsafe.Pointer)

func IORecursiveConditionLockTryLock

func IORecursiveConditionLockTryLock(lock unsafe.Pointer) bool

func IORecursiveConditionLockUnlock

func IORecursiveConditionLockUnlock(lock unsafe.Pointer)

func IORecursiveLockAlloc

func IORecursiveLockAlloc() unsafe.Pointer

func IORecursiveLockFree

func IORecursiveLockFree(lock unsafe.Pointer)

func IORecursiveLockHaveLock

func IORecursiveLockHaveLock(lock unsafe.Pointer) bool

func IORecursiveLockLock

func IORecursiveLockLock(lock unsafe.Pointer)

func IORecursiveLockTryLock

func IORecursiveLockTryLock(lock unsafe.Pointer) bool

func IORecursiveLockUnlock

func IORecursiveLockUnlock(lock unsafe.Pointer)

func IOReportLegend_Class

func IOReportLegend_Class() uintptr

func IOReporter_Class

func IOReporter_Class() uintptr

func IOServiceNotificationDispatchSource_Class

func IOServiceNotificationDispatchSource_Class() uintptr

func IOServiceStateNotificationDispatchSource_Class

func IOServiceStateNotificationDispatchSource_Class() uintptr

func IOService_Class

func IOService_Class() uintptr

func IOSimpleReporter_Class

func IOSimpleReporter_Class() uintptr

func IOSleep

func IOSleep(ms uint64)

func IOStateReporter_Class

func IOStateReporter_Class() uintptr

func IOSysCtlByName

func IOSysCtlByName(name string, oldp unsafe.Pointer, oldlenp *uint, newp unsafe.Pointer, newlen uint) int

func IOThreadLocalStorageGet

func IOThreadLocalStorageGet(key uint64) unsafe.Pointer

func IOThreadLocalStorageKeyCreate

func IOThreadLocalStorageKeyCreate(key *uint64) int

func IOThreadLocalStorageKeyDelete

func IOThreadLocalStorageKeyDelete(key uint64) int

func IOThreadLocalStorageSet

func IOThreadLocalStorageSet(key uint64, value unsafe.Pointer) int

func IOTimerDispatchSource_Class

func IOTimerDispatchSource_Class() uintptr

func IOUserClient_Class

func IOUserClient_Class() uintptr

func IOVMPageSize

func IOVMPageSize() uint64

@extern IOVMPageSize @abstract Containes the page size of the VM paging system in bytes.

func Insque

func Insque(entry *QueueEntry, pred *QueueEntry)

C function: insque

func KOSBooleanFalse

func KOSBooleanFalse() *int32

@const kOSBooleanFalse @abstract The OSBoolean constant for <code>false</code>. @discussion kOSBooleanFalse is the OSBoolean constant for <code>true</code>. This object does not need to be retained or released (but it can be). Comparisons should be of the form <code>booleanObject == kOSBooleanFalse</code>

func KOSBooleanTrue

func KOSBooleanTrue() *int32

@const kOSBooleanTrue @abstract The OSBoolean constant for <code>true</code>. @discussion kOSBooleanTrue is the OSBoolean constant for <code>true</code>. This object does not need to be retained or released (but it can be). Comparisons should be of the form <code>booleanObject == kOSBooleanTrue</code>

func Movqueue

func Movqueue(_old *QueueEntry, _new *QueueEntry)

C function: movqueue

func OSAction_Class

func OSAction_Class() uintptr

func OSAction_IOUserClient_KernelCompletion_Class

func OSAction_IOUserClient_KernelCompletion_Class() uintptr

func OSArrayAppendValue

func OSArrayAppendValue(obj *int32, value unsafe.Pointer) bool

func OSArrayApply

func OSArrayApply(obj *int32, applier func(unsafe.Pointer) bool) bool

func OSArrayCreate

func OSArrayCreate() *int32

func OSArrayGetCount

func OSArrayGetCount(obj *int32) uint32

func OSArrayGetStringValue

func OSArrayGetStringValue(obj *int32, index uint) string

func OSArrayGetUInt64Value

func OSArrayGetUInt64Value(obj *int32, index uint) uint64

func OSArrayGetValue

func OSArrayGetValue(obj *int32, index uint) unsafe.Pointer

func OSArrayReplaceValue

func OSArrayReplaceValue(obj *int32, index uint, value unsafe.Pointer) bool

func OSArraySetStringValue

func OSArraySetStringValue(obj *int32, index uint, value string)

func OSArraySetUInt64Value

func OSArraySetUInt64Value(obj *int32, index uint, value uint64)

func OSArraySetValue

func OSArraySetValue(obj *int32, index uint, value unsafe.Pointer) bool

func OSArray_Class

func OSArray_Class() uintptr

func OSBoolean_Class

func OSBoolean_Class() uintptr

func OSBundle_Class

func OSBundle_Class() uintptr

func OSCollectionTypeID

func OSCollectionTypeID(obj unsafe.Pointer) uint64

func OSCollectionTypeName

func OSCollectionTypeName(t uint64) string

func OSCollection_Class

func OSCollection_Class() uintptr

func OSCollectionsInitialize

func OSCollectionsInitialize()

func OSContainer_Class

func OSContainer_Class() uintptr

func OSCreateObjectFromSerialization

func OSCreateObjectFromSerialization(serial *int32) unsafe.Pointer

func OSCreateSerializationFromBytes

func OSCreateSerializationFromBytes(bytes_ unsafe.Pointer, length uint, freeBuffer func(unsafe.Pointer, uint)) *int32

func OSCreateSerializationFromObject

func OSCreateSerializationFromObject(obj unsafe.Pointer) *int32

func OSDataAppendBytes

func OSDataAppendBytes(data *int32, bytes_ unsafe.Pointer, length uint) bool

func OSDataCreate

func OSDataCreate(bytes_ unsafe.Pointer, length uint) *int32

func OSDataGetBytes

func OSDataGetBytes(obj *int32, buffer unsafe.Pointer, offset uint, length uint) uint

func OSDataGetBytesPtr

func OSDataGetBytesPtr(obj *int32, offset uint, length uint) unsafe.Pointer

func OSDataGetLength

func OSDataGetLength(obj *int32) uint

func OSData_Class

func OSData_Class() uintptr

func OSDictionaryApply

func OSDictionaryApply(obj *int32, applier func(string, unsafe.Pointer) bool) bool

func OSDictionaryCreate

func OSDictionaryCreate() *int32

func OSDictionaryGetCount

func OSDictionaryGetCount(obj *int32) uint32

func OSDictionaryGetStringValue

func OSDictionaryGetStringValue(obj *int32, key string) string

func OSDictionaryGetUInt64Value

func OSDictionaryGetUInt64Value(obj *int32, key string) uint64

func OSDictionaryGetValue

func OSDictionaryGetValue(obj *int32, key string) unsafe.Pointer

func OSDictionarySetStringValue

func OSDictionarySetStringValue(obj *int32, key string, value string)

func OSDictionarySetUInt64Value

func OSDictionarySetUInt64Value(obj *int32, key string, value uint64)

func OSDictionarySetValue

func OSDictionarySetValue(obj *int32, key string, value unsafe.Pointer) bool

func OSDictionary_Class

func OSDictionary_Class() uintptr

func OSMappedFile_Class

func OSMappedFile_Class() uintptr

func OSNumberCreateWithUInt64Value

func OSNumberCreateWithUInt64Value(value uint64) *int32

func OSNumberGetUInt64Value

func OSNumberGetUInt64Value(obj *int32) uint64

func OSNumber_Class

func OSNumber_Class() uintptr

func OSObjectAllocate

func OSObjectAllocate(meta *int32, pObject *foundation.NSObject) int

func OSObjectLog

func OSObjectLog(obj unsafe.Pointer)

func OSObjectRelease

func OSObjectRelease(container unsafe.Pointer)

func OSObjectRetain

func OSObjectRetain(container unsafe.Pointer)

func OSObject_Class

func OSObject_Class() uintptr

func OSOrderedSet_Class

func OSOrderedSet_Class() uintptr

func OSSerializationGetBytes

func OSSerializationGetBytes(serial *int32, length *uint) unsafe.Pointer

func OSSerialization_Class

func OSSerialization_Class() uintptr

func OSSet_Class

func OSSet_Class() uintptr

func OSStringCreate

func OSStringCreate(cstring string, length uint) *int32

func OSStringGetLength

func OSStringGetLength(string_ *int32) uint

func OSStringGetStringPtr

func OSStringGetStringPtr(obj *int32) string

func OSString_Class

func OSString_Class() uintptr

func OSSynchronizeIO

func OSSynchronizeIO()

func QUEUEELTVALIDATE

func QUEUEELTVALIDATE(elt *QueueEntry)

C function: __QUEUE_ELT_VALIDATE

func ReQueueHead

func ReQueueHead(que *QueueEntry, elt *QueueEntry)

C function: re_queue_head

func ReQueueTail

func ReQueueTail(que *QueueEntry, elt *QueueEntry)

C function: re_queue_tail

func ReadRandom

func ReadRandom(buffer unsafe.Pointer, numBytes uint)

C function: read_random

func Remque

func Remque(elt *QueueEntry)

C function: remque

func Remqueue

func Remqueue(elt *QueueEntry)

C function: remqueue

func SymbolAvailable

func SymbolAvailable(symbol string) bool

SymbolAvailable reports whether the named C symbol was bound when the library loaded. Calling a generated wrapper whose symbol is unavailable dereferences a nil function variable and panics.

Types

type Clockid_t

type Clockid_t int64

func (Clockid_t) String

func (e Clockid_t) String() string

type Dispatch_autorelease_frequency_t

type Dispatch_autorelease_frequency_t uint64
const (
	DISPATCH_AUTORELEASE_FREQUENCY_INHERIT   Dispatch_autorelease_frequency_t = 0
	DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM Dispatch_autorelease_frequency_t = 1
	DISPATCH_AUTORELEASE_FREQUENCY_NEVER     Dispatch_autorelease_frequency_t = 2
)

func (Dispatch_autorelease_frequency_t) String

type Dispatch_block_flags_t

type Dispatch_block_flags_t uint64
const (
	DISPATCH_BLOCK_BARRIER           Dispatch_block_flags_t = 1
	DISPATCH_BLOCK_DETACHED          Dispatch_block_flags_t = 2
	DISPATCH_BLOCK_ASSIGN_CURRENT    Dispatch_block_flags_t = 4
	DISPATCH_BLOCK_NO_QOS_CLASS      Dispatch_block_flags_t = 8
	DISPATCH_BLOCK_INHERIT_QOS_CLASS Dispatch_block_flags_t = 16
	DISPATCH_BLOCK_ENFORCE_QOS_CLASS Dispatch_block_flags_t = 32
)

func (Dispatch_block_flags_t) String

func (e Dispatch_block_flags_t) String() string

type Filesec_property_t

type Filesec_property_t int64
const (
	FILESEC_OWNER         Filesec_property_t = 1
	FILESEC_GROUP         Filesec_property_t = 2
	FILESEC_UUID          Filesec_property_t = 3
	FILESEC_MODE          Filesec_property_t = 4
	FILESEC_ACL           Filesec_property_t = 5
	FILESEC_GRPUUID       Filesec_property_t = 6
	FILESEC_ACL_RAW       Filesec_property_t = 100
	FILESEC_ACL_ALLOCSIZE Filesec_property_t = 101
)

func (Filesec_property_t) String

func (e Filesec_property_t) String() string

type IOAddressSegment

type IOAddressSegment struct {
	Address uint64
	Length  uint64
}

A structure that describes the location and size of a block of memory.

type IOBufferMemoryDescriptor_IVars

type IOBufferMemoryDescriptor_IVars struct{}

IOBufferMemoryDescriptor_IVars is an opaque type.

type IOBufferMemoryDescriptor_LocalIVars

type IOBufferMemoryDescriptor_LocalIVars struct{}

IOBufferMemoryDescriptor_LocalIVars is an opaque type.

type IOCallOnceFlag

type IOCallOnceFlag struct {
	Opaque int
}

Structure to test whether block has completed or not.

type IOCommandPool_IVars

type IOCommandPool_IVars struct{}

IOCommandPool_IVars is an opaque type.

type IOCommandPool_LocalIVars

type IOCommandPool_LocalIVars struct{}

IOCommandPool_LocalIVars is an opaque type.

type IOCommand_IVars

type IOCommand_IVars struct{}

IOCommand_IVars is an opaque type.

type IOCommand_LocalIVars

type IOCommand_LocalIVars struct{}

IOCommand_LocalIVars is an opaque type.

type IODMACommandSpecification

type IODMACommandSpecification struct {
	Options        uint64
	MaxAddressBits uint64
}

type IODMACommand_IVars

type IODMACommand_IVars struct{}

IODMACommand_IVars is an opaque type.

type IODMACommand_LocalIVars

type IODMACommand_LocalIVars struct{}

IODMACommand_LocalIVars is an opaque type.

type IODataQueueDispatchSource_IVars

type IODataQueueDispatchSource_IVars struct{}

IODataQueueDispatchSource_IVars is an opaque type.

type IODataQueueDispatchSource_LocalIVars

type IODataQueueDispatchSource_LocalIVars struct{}

IODataQueueDispatchSource_LocalIVars is an opaque type.

type IODispatchQueue_IVars

type IODispatchQueue_IVars struct{}

IODispatchQueue_IVars is an opaque type.

type IODispatchQueue_LocalIVars

type IODispatchQueue_LocalIVars struct{}

IODispatchQueue_LocalIVars is an opaque type.

type IODispatchSource_IVars

type IODispatchSource_IVars struct{}

IODispatchSource_IVars is an opaque type.

type IODispatchSource_LocalIVars

type IODispatchSource_LocalIVars struct{}

IODispatchSource_LocalIVars is an opaque type.

type IOHistogramReportValues

type IOHistogramReportValues struct {
	Bucket_hits uint64
	Bucket_min  int64
	Bucket_max  int64
	Bucket_sum  int64
}

type IOHistogramReporter_IVars

type IOHistogramReporter_IVars struct{}

IOHistogramReporter_IVars is an opaque type.

type IOHistogramReporter_LocalIVars

type IOHistogramReporter_LocalIVars struct{}

IOHistogramReporter_LocalIVars is an opaque type.

type IOHistogramSegmentConfig

type IOHistogramSegmentConfig struct {
	Base_bucket_width    uint32
	Scale_flag           uint32
	Segment_idx          uint32
	Segment_bucket_count uint32
}

type IOInterruptDispatchSourcePayload

type IOInterruptDispatchSourcePayload struct {
	Time  uint64
	Count uint64
}

A private structure for an interrupt dispatch source.

type IOInterruptDispatchSource_IVars

type IOInterruptDispatchSource_IVars struct{}

IOInterruptDispatchSource_IVars is an opaque type.

type IOInterruptDispatchSource_LocalIVars

type IOInterruptDispatchSource_LocalIVars struct{}

IOInterruptDispatchSource_LocalIVars is an opaque type.

type IOLock

type IOLock struct{}

IOLock is an opaque type.

type IOLockAssertState

type IOLockAssertState int64
const (
	KIOLockAssertOwned    IOLockAssertState = 1
	KIOLockAssertNotOwned IOLockAssertState = 2
)

func (IOLockAssertState) String

func (e IOLockAssertState) String() string

type IOMDPrivateState

type IOMDPrivateState struct {
	Length  uint64
	Options uint64
}

C struct: _IOMDPrivateState

type IOMemoryDescriptor_IVars

type IOMemoryDescriptor_IVars struct{}

IOMemoryDescriptor_IVars is an opaque type.

type IOMemoryDescriptor_LocalIVars

type IOMemoryDescriptor_LocalIVars struct{}

IOMemoryDescriptor_LocalIVars is an opaque type.

type IOMemoryMapPrivateState

type IOMemoryMapPrivateState struct {
	Length  uint64
	Offset  uint64
	Options uint64
	Address uint64
}

C struct: _IOMemoryMapPrivateState

type IOMemoryMap_IVars

type IOMemoryMap_IVars struct{}

IOMemoryMap_IVars is an opaque type.

type IOMemoryMap_LocalIVars

type IOMemoryMap_LocalIVars struct{}

IOMemoryMap_LocalIVars is an opaque type.

type IONamedValue

type IONamedValue struct {
	Value int
	Name  string
}

type IONormDistReportValues

type IONormDistReportValues struct {
	Samples  uint64
	Mean     uint64
	Variance uint64
	Reserved uint64
}

type IOPhysicalRange

type IOPhysicalRange struct {
	Address uint64
	Length  uint64
}

type IORPC

type IORPC struct {
	Message   *IORPCMessageMach
	Reply     *IORPCMessageMach
	SendSize  uint32
	ReplySize uint32
}

type IORPCMessage

type IORPCMessage struct {
	Msgid      uint64
	Flags      uint64
	ObjectRefs uint64
	Objects    [0]uint64
}

func IORPCMessageFromMach

func IORPCMessageFromMach(msg *IORPCMessageMach, reply bool) *IORPCMessage

type IORPCMessageErrorReturn

type IORPCMessageErrorReturn struct {
	Mach    IORPCMessageMach
	Content IORPCMessageErrorReturnContent
}

type IORPCMessageErrorReturnContent

type IORPCMessageErrorReturnContent struct {
	Hdr    IORPCMessage
	Result int
	Pad    uint32
}

type IORPCMessageMach

type IORPCMessageMach struct {
	Msgh      unsafe.Pointer
	Msgh_body unsafe.Pointer
	Objects   [0]unsafe.Pointer
}

type IORWLock

type IORWLock struct{}

IORWLock is an opaque type.

type IORWLockAssertState

type IORWLockAssertState int64

@enum IORWLockAssertState @abstract Used with IORWLockAssert to assert the state of a lock.

const (
	KIORWLockAssertRead    IORWLockAssertState = 1
	KIORWLockAssertWrite   IORWLockAssertState = 2
	KIORWLockAssertHeld    IORWLockAssertState = 3
	KIORWLockAssertNotHeld IORWLockAssertState = 4
)

func (IORWLockAssertState) String

func (e IORWLockAssertState) String() string

type IORecursiveConditionLock

type IORecursiveConditionLock struct{}

IORecursiveConditionLock is an opaque type.

type IORecursiveLock

type IORecursiveLock struct{}

IORecursiveLock is an opaque type.

type IOReportChannel

type IOReportChannel struct {
	Channel_id   uint64
	Channel_type IOReportChannelType
}

type IOReportChannelList

type IOReportChannelList struct {
	Nchannels uint32
	Channels  []IOReportChannel
}

type IOReportChannelType

type IOReportChannelType struct {
	Report_format uint8
	Reserved      uint8
	Categories    uint16
	Nelements     uint16
	Element_idx   int16
}

type IOReportElement

type IOReportElement struct {
	Provider_id  uint64
	Channel_id   uint64
	Channel_type IOReportChannelType
	Timestamp    uint64
	Values       IOReportElementValues
}

type IOReportElementValues

type IOReportElementValues struct {
	V [4]uint64
}

type IOReportInterest

type IOReportInterest struct {
	Provider_id uint64
	Channel     IOReportChannel
}

type IOReportInterestList

type IOReportInterestList struct {
	Ninterests uint32
	Interests  []IOReportInterest
}

type IOReportLegend_IVars

type IOReportLegend_IVars struct{}

IOReportLegend_IVars is an opaque type.

type IOReportLegend_LocalIVars

type IOReportLegend_LocalIVars struct{}

IOReportLegend_LocalIVars is an opaque type.

type IOReporter_IVars

type IOReporter_IVars struct{}

IOReporter_IVars is an opaque type.

type IOReporter_LocalIVars

type IOReporter_LocalIVars struct{}

IOReporter_LocalIVars is an opaque type.

type IOServiceNotificationDispatchSource_IVars

type IOServiceNotificationDispatchSource_IVars struct{}

IOServiceNotificationDispatchSource_IVars is an opaque type.

type IOServiceNotificationDispatchSource_LocalIVars

type IOServiceNotificationDispatchSource_LocalIVars struct{}

IOServiceNotificationDispatchSource_LocalIVars is an opaque type.

type IOServiceStateNotificationDispatchSource_IVars

type IOServiceStateNotificationDispatchSource_IVars struct{}

IOServiceStateNotificationDispatchSource_IVars is an opaque type.

type IOServiceStateNotificationDispatchSource_LocalIVars

type IOServiceStateNotificationDispatchSource_LocalIVars struct{}

IOServiceStateNotificationDispatchSource_LocalIVars is an opaque type.

type IOService_IVars

type IOService_IVars struct{}

IOService_IVars is an opaque type.

type IOService_LocalIVars

type IOService_LocalIVars struct{}

IOService_LocalIVars is an opaque type.

type IOSimpleArrayReportValues

type IOSimpleArrayReportValues struct {
	Simple_values [4]int64
}

type IOSimpleReportValues

type IOSimpleReportValues struct {
	Simple_value int64
	Reserved1    uint64
	Reserved2    uint64
	Reserved3    uint64
}

type IOSimpleReporter_IVars

type IOSimpleReporter_IVars struct{}

IOSimpleReporter_IVars is an opaque type.

type IOSimpleReporter_LocalIVars

type IOSimpleReporter_LocalIVars struct{}

IOSimpleReporter_LocalIVars is an opaque type.

type IOStateReportValues

type IOStateReportValues struct {
	State_id          uint64
	Intransitions     uint64
	Upticks           uint64
	Last_intransition uint64
}

type IOStateReporter_IVars

type IOStateReporter_IVars struct{}

IOStateReporter_IVars is an opaque type.

type IOStateReporter_LocalIVars

type IOStateReporter_LocalIVars struct{}

IOStateReporter_LocalIVars is an opaque type.

type IOStateReporter_valueSelector

type IOStateReporter_valueSelector int64
const (
	KInTransitions      IOStateReporter_valueSelector = 0
	KResidencyTime      IOStateReporter_valueSelector = 1
	KLastTransitionTime IOStateReporter_valueSelector = 2
)

func (IOStateReporter_valueSelector) String

type IOTimerDispatchSource_IVars

type IOTimerDispatchSource_IVars struct{}

IOTimerDispatchSource_IVars is an opaque type.

type IOTimerDispatchSource_LocalIVars

type IOTimerDispatchSource_LocalIVars struct{}

IOTimerDispatchSource_LocalIVars is an opaque type.

type IOUserClientMethodArguments

type IOUserClientMethodArguments struct {
	Version                    uint64
	Selector                   uint64
	Completion                 *int32
	ScalarInput                *uint64
	ScalarInputCount           uint32
	StructureInput             *int32
	StructureInputDescriptor   *int32
	ScalarOutput               *uint64
	ScalarOutputCount          uint32
	StructureOutput            *int32
	StructureOutputDescriptor  *int32
	StructureOutputMaximumSize uint64
}

Arguments to pass to IOConnectMethod calls.

type IOUserClientMethodDispatch

type IOUserClientMethodDispatch struct {
	Function                 unsafe.Pointer
	CheckCompletionExists    uint32
	CheckScalarInputCount    uint32
	CheckStructureInputSize  uint32
	CheckScalarOutputCount   uint32
	CheckStructureOutputSize uint32
}

A structure that specifies how to validate the arguments passed to a client method function.

type IOUserClient_IVars

type IOUserClient_IVars struct{}

IOUserClient_IVars is an opaque type.

type IOUserClient_LocalIVars

type IOUserClient_LocalIVars struct{}

IOUserClient_LocalIVars is an opaque type.

type IOVirtualRange

type IOVirtualRange struct {
	Address uint64
	Length  uint64
}

type Idtype_t

type Idtype_t int64
const (
	P_ALL  Idtype_t = 0
	P_PID  Idtype_t = 1
	P_PGID Idtype_t = 2
)

func (Idtype_t) String

func (e Idtype_t) String() string

type Ipc_info_object_type_t

type Ipc_info_object_type_t int64
const (
	IPC_OTYPE_NONE                 Ipc_info_object_type_t = 0
	IPC_OTYPE_THREAD_CONTROL       Ipc_info_object_type_t = 1
	IPC_OTYPE_TASK_CONTROL         Ipc_info_object_type_t = 2
	IPC_OTYPE_HOST                 Ipc_info_object_type_t = 3
	IPC_OTYPE_HOST_PRIV            Ipc_info_object_type_t = 4
	IPC_OTYPE_PROCESSOR            Ipc_info_object_type_t = 5
	IPC_OTYPE_PROCESSOR_SET        Ipc_info_object_type_t = 6
	IPC_OTYPE_PROCESSOR_SET_NAME   Ipc_info_object_type_t = 7
	IPC_OTYPE_TIMER                Ipc_info_object_type_t = 8
	IPC_OTYPE_PORT_SUBST_ONCE      Ipc_info_object_type_t = 9
	IPC_OTYPE_MIG                  Ipc_info_object_type_t = 10
	IPC_OTYPE_MEMORY_OBJECT        Ipc_info_object_type_t = 11
	IPC_OTYPE_XMM_PAGER            Ipc_info_object_type_t = 12
	IPC_OTYPE_XMM_KERNEL           Ipc_info_object_type_t = 13
	IPC_OTYPE_XMM_REPLY            Ipc_info_object_type_t = 14
	IPC_OTYPE_UND_REPLY            Ipc_info_object_type_t = 15
	IPC_OTYPE_HOST_NOTIFY          Ipc_info_object_type_t = 16
	IPC_OTYPE_HOST_SECURITY        Ipc_info_object_type_t = 17
	IPC_OTYPE_LEDGER               Ipc_info_object_type_t = 18
	IPC_OTYPE_MAIN_DEVICE          Ipc_info_object_type_t = 19
	IPC_OTYPE_TASK_NAME            Ipc_info_object_type_t = 20
	IPC_OTYPE_SUBSYSTEM            Ipc_info_object_type_t = 21
	IPC_OTYPE_IO_DONE_QUEUE        Ipc_info_object_type_t = 22
	IPC_OTYPE_SEMAPHORE            Ipc_info_object_type_t = 23
	IPC_OTYPE_LOCK_SET             Ipc_info_object_type_t = 24
	IPC_OTYPE_CLOCK                Ipc_info_object_type_t = 25
	IPC_OTYPE_CLOCK_CTRL           Ipc_info_object_type_t = 26
	IPC_OTYPE_IOKIT_IDENT          Ipc_info_object_type_t = 27
	IPC_OTYPE_NAMED_ENTRY          Ipc_info_object_type_t = 28
	IPC_OTYPE_IOKIT_CONNECT        Ipc_info_object_type_t = 29
	IPC_OTYPE_IOKIT_OBJECT         Ipc_info_object_type_t = 30
	IPC_OTYPE_UPL                  Ipc_info_object_type_t = 31
	IPC_OTYPE_MEM_OBJ_CONTROL      Ipc_info_object_type_t = 32
	IPC_OTYPE_AU_SESSIONPORT       Ipc_info_object_type_t = 33
	IPC_OTYPE_FILEPORT             Ipc_info_object_type_t = 34
	IPC_OTYPE_LABELH               Ipc_info_object_type_t = 35
	IPC_OTYPE_TASK_RESUME          Ipc_info_object_type_t = 36
	IPC_OTYPE_VOUCHER              Ipc_info_object_type_t = 37
	IPC_OTYPE_VOUCHER_ATTR_CONTROL Ipc_info_object_type_t = 38
	IPC_OTYPE_WORK_INTERVAL        Ipc_info_object_type_t = 39
	IPC_OTYPE_UX_HANDLER           Ipc_info_object_type_t = 40
	IPC_OTYPE_UEXT_OBJECT          Ipc_info_object_type_t = 41
	IPC_OTYPE_ARCADE_REG           Ipc_info_object_type_t = 42
	IPC_OTYPE_EVENTLINK            Ipc_info_object_type_t = 43
	IPC_OTYPE_TASK_INSPECT         Ipc_info_object_type_t = 44
	IPC_OTYPE_TASK_READ            Ipc_info_object_type_t = 45
	IPC_OTYPE_THREAD_INSPECT       Ipc_info_object_type_t = 46
	IPC_OTYPE_THREAD_READ          Ipc_info_object_type_t = 47
	IPC_OTYPE_SUID_CRED            Ipc_info_object_type_t = 48
	IPC_OTYPE_HYPERVISOR           Ipc_info_object_type_t = 49
	IPC_OTYPE_TASK_ID_TOKEN        Ipc_info_object_type_t = 50
	IPC_OTYPE_TASK_FATAL           Ipc_info_object_type_t = 51
	IPC_OTYPE_KCDATA               Ipc_info_object_type_t = 52
	IPC_OTYPE_EXCLAVES_RESOURCE    Ipc_info_object_type_t = 53
	IPC_OTYPE_THREAD_RESUME        Ipc_info_object_type_t = 54
	IPC_OTYPE_UNKNOWN              Ipc_info_object_type_t = 4294967295
)

func (Ipc_info_object_type_t) String

func (e Ipc_info_object_type_t) String() string

type Launch_data_type_t

type Launch_data_type_t int64
const (
	LAUNCH_DATA_DICTIONARY Launch_data_type_t = 1
	LAUNCH_DATA_ARRAY      Launch_data_type_t = 2
	LAUNCH_DATA_FD         Launch_data_type_t = 3
	LAUNCH_DATA_INTEGER    Launch_data_type_t = 4
	LAUNCH_DATA_REAL       Launch_data_type_t = 5
	LAUNCH_DATA_BOOL       Launch_data_type_t = 6
	LAUNCH_DATA_STRING     Launch_data_type_t = 7
	LAUNCH_DATA_OPAQUE     Launch_data_type_t = 8
	LAUNCH_DATA_ERRNO      Launch_data_type_t = 9
	LAUNCH_DATA_MACHPORT   Launch_data_type_t = 10
)

func (Launch_data_type_t) String

func (e Launch_data_type_t) String() string

type Mach_vm_range_flags_t

type Mach_vm_range_flags_t int64
const (
	MACH_VM_RANGE_NONE Mach_vm_range_flags_t = 0
)

func (Mach_vm_range_flags_t) String

func (e Mach_vm_range_flags_t) String() string

type Mach_vm_range_flavor_t

type Mach_vm_range_flavor_t int64
const (
	MACH_VM_RANGE_FLAVOR_INVALID Mach_vm_range_flavor_t = 0
	MACH_VM_RANGE_FLAVOR_V1      Mach_vm_range_flavor_t = 1
)

func (Mach_vm_range_flavor_t) String

func (e Mach_vm_range_flavor_t) String() string

type Mach_vm_range_tag_t

type Mach_vm_range_tag_t int64
const (
	MACH_VM_RANGE_DEFAULT Mach_vm_range_tag_t = 0
	MACH_VM_RANGE_DATA    Mach_vm_range_tag_t = 1
	MACH_VM_RANGE_FIXED   Mach_vm_range_tag_t = 2
)

func (Mach_vm_range_tag_t) String

func (e Mach_vm_range_tag_t) String() string

type Mpo_flags_t

type Mpo_flags_t int64
const (
	MPO_PORT                            Mpo_flags_t = 0
	MPO_SERVICE_PORT                    Mpo_flags_t = 1024
	MPO_CONNECTION_PORT                 Mpo_flags_t = 2048
	MPO_REPLY_PORT                      Mpo_flags_t = 4096
	MPO_WEAK_REPLY_PORT                 Mpo_flags_t = 16384
	MPO_NOTIFICATION_PORT               Mpo_flags_t = 17408
	MPO_EXCEPTION_PORT                  Mpo_flags_t = 32768
	MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536
)

func (Mpo_flags_t) String

func (e Mpo_flags_t) String() string

type OSActionWaitToken

type OSActionWaitToken struct{}

OSActionWaitToken is an opaque type.

type OSAction_IOUserClient_KernelCompletion_IVars

type OSAction_IOUserClient_KernelCompletion_IVars struct{}

OSAction_IOUserClient_KernelCompletion_IVars is an opaque type.

type OSAction_IOUserClient_KernelCompletion_LocalIVars

type OSAction_IOUserClient_KernelCompletion_LocalIVars struct{}

OSAction_IOUserClient_KernelCompletion_LocalIVars is an opaque type.

type OSAction_IVars

type OSAction_IVars struct{}

OSAction_IVars is an opaque type.

type OSAction_LocalIVars

type OSAction_LocalIVars struct{}

OSAction_LocalIVars is an opaque type.

type OSArray_IVars

type OSArray_IVars struct{}

OSArray_IVars is an opaque type.

type OSArray_LocalIVars

type OSArray_LocalIVars struct{}

OSArray_LocalIVars is an opaque type.

type OSBoolean_IVars

type OSBoolean_IVars struct{}

OSBoolean_IVars is an opaque type.

type OSBoolean_LocalIVars

type OSBoolean_LocalIVars struct{}

OSBoolean_LocalIVars is an opaque type.

type OSBundle_IVars

type OSBundle_IVars struct{}

OSBundle_IVars is an opaque type.

type OSBundle_LocalIVars

type OSBundle_LocalIVars struct{}

OSBundle_LocalIVars is an opaque type.

type OSClassDescription

type OSClassDescription struct {
	DescriptionSize         uint32
	Name                    [96]int8
	SuperName               [96]int8
	MethodOptionsSize       uint32
	MethodOptionsOffset     uint32
	MetaMethodOptionsSize   uint32
	MetaMethodOptionsOffset uint32
	QueueNamesSize          uint32
	QueueNamesOffset        uint32
	MethodNamesSize         uint32
	MethodNamesOffset       uint32
	MetaMethodNamesSize     uint32
	MetaMethodNamesOffset   uint32
	Flags                   uint64
	Resv1                   [8]uint64
	MethodOptions           [0]uint64
	MetaMethodOptions       [0]uint64
	DispatchNames           [0]int8
	MethodNames             [0]int8
	MetaMethodNames         [0]int8
}

type OSClassLoadInformation

type OSClassLoadInformation struct {
	Description  *OSClassDescription
	MetaPointer  *int32
	Version      uint32
	InstanceSize uint32
	Resv2        [8]uint64
	New          unsafe.Pointer
	Resv3        [8]uint64
}

type OSCollection_IVars

type OSCollection_IVars struct{}

OSCollection_IVars is an opaque type.

type OSCollection_LocalIVars

type OSCollection_LocalIVars struct{}

OSCollection_LocalIVars is an opaque type.

type OSContainer_IVars

type OSContainer_IVars struct{}

OSContainer_IVars is an opaque type.

type OSContainer_LocalIVars

type OSContainer_LocalIVars struct{}

OSContainer_LocalIVars is an opaque type.

type OSData_IVars

type OSData_IVars struct{}

OSData_IVars is an opaque type.

type OSData_LocalIVars

type OSData_LocalIVars struct{}

OSData_LocalIVars is an opaque type.

type OSDictionary_IVars

type OSDictionary_IVars struct{}

OSDictionary_IVars is an opaque type.

type OSDictionary_LocalIVars

type OSDictionary_LocalIVars struct{}

OSDictionary_LocalIVars is an opaque type.

type OSMappedFile_IVars

type OSMappedFile_IVars struct{}

OSMappedFile_IVars is an opaque type.

type OSMappedFile_LocalIVars

type OSMappedFile_LocalIVars struct{}

OSMappedFile_LocalIVars is an opaque type.

type OSMetaClassPrivate

type OSMetaClassPrivate struct{}

OSMetaClassPrivate is an opaque type.

type OSNumber_IVars

type OSNumber_IVars struct{}

OSNumber_IVars is an opaque type.

type OSNumber_LocalIVars

type OSNumber_LocalIVars struct{}

OSNumber_LocalIVars is an opaque type.

type OSObject

type OSObject struct{}

The base class for DriverKit objects OSObject is an opaque type.

type OSObject_IVars

type OSObject_IVars struct{}

OSObject_IVars is an opaque type.

type OSObject_LocalIVars

type OSObject_LocalIVars struct{}

OSObject_LocalIVars is an opaque type.

type OSOrderedSet_IVars

type OSOrderedSet_IVars struct{}

OSOrderedSet_IVars is an opaque type.

type OSOrderedSet_LocalIVars

type OSOrderedSet_LocalIVars struct{}

OSOrderedSet_LocalIVars is an opaque type.

type OSSerialization_IVars

type OSSerialization_IVars struct{}

OSSerialization_IVars is an opaque type.

type OSSerialization_LocalIVars

type OSSerialization_LocalIVars struct{}

OSSerialization_LocalIVars is an opaque type.

type OSSet_IVars

type OSSet_IVars struct{}

OSSet_IVars is an opaque type.

type OSSet_LocalIVars

type OSSet_LocalIVars struct{}

OSSet_LocalIVars is an opaque type.

type OSStringStatic

type OSStringStatic struct {
	CString  string
	OsString *int32
}

C struct: __OSStringStatic

type OSString_IVars

type OSString_IVars struct{}

OSString_IVars is an opaque type.

type OSString_LocalIVars

type OSString_LocalIVars struct{}

OSString_LocalIVars is an opaque type.

type Os_clockid_t

type Os_clockid_t int64
const (
	OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)

func (Os_clockid_t) String

func (e Os_clockid_t) String() string

type Os_log_type_t

type Os_log_type_t int64
const (
	OS_LOG_TYPE_DEFAULT Os_log_type_t = 0
	OS_LOG_TYPE_INFO    Os_log_type_t = 1
	OS_LOG_TYPE_DEBUG   Os_log_type_t = 2
	OS_LOG_TYPE_ERROR   Os_log_type_t = 16
	OS_LOG_TYPE_FAULT   Os_log_type_t = 17
)

func (Os_log_type_t) String

func (e Os_log_type_t) String() string

type Qos_class_t

type Qos_class_t uint32
const (
	QOS_CLASS_USER_INTERACTIVE Qos_class_t = 33
	QOS_CLASS_USER_INITIATED   Qos_class_t = 25
	QOS_CLASS_DEFAULT          Qos_class_t = 21
	QOS_CLASS_UTILITY          Qos_class_t = 17
	QOS_CLASS_BACKGROUND       Qos_class_t = 9
	QOS_CLASS_UNSPECIFIED      Qos_class_t = 0
)

func (Qos_class_t) String

func (e Qos_class_t) String() string

type QueueChainT

type QueueChainT = QueueEntry

QueueChainT is an alias for queue_entry (C typedef queue_chain_t).

type QueueEntry

type QueueEntry struct {
	Next *QueueEntry
	Prev *QueueEntry
}

C struct: queue_entry

func DequeueHead

func DequeueHead(que *QueueEntry) *QueueEntry

C function: dequeue_head

func DequeueTail

func DequeueTail(que *QueueEntry) *QueueEntry

C function: dequeue_tail

func QUEUEELTVALIDATENEXT

func QUEUEELTVALIDATENEXT(elt *QueueEntry) *QueueEntry

C function: __QUEUE_ELT_VALIDATE_NEXT

func QUEUEELTVALIDATEPREV

func QUEUEELTVALIDATEPREV(elt *QueueEntry) *QueueEntry

C function: __QUEUE_ELT_VALIDATE_PREV

type QueueEntryT

type QueueEntryT = *QueueEntry

QueueEntryT is an opaque pointer to queue_entry (C typedef queue_entry_t).

type QueueHeadT

type QueueHeadT = QueueEntry

QueueHeadT is an alias for queue_entry (C typedef queue_head_t).

type QueueT

type QueueT = *QueueEntry

QueueT is an opaque pointer to queue_entry (C typedef queue_t).

type Virtual_memory_guard_exception_code_t

type Virtual_memory_guard_exception_code_t int64
const (
	KGUARD_EXC_DEALLOC_GAP                   Virtual_memory_guard_exception_code_t = 1
	KGUARD_EXC_RECLAIM_COPYIO_FAILURE        Virtual_memory_guard_exception_code_t = 2
	KGUARD_EXC_RECLAIM_INDEX_FAILURE         Virtual_memory_guard_exception_code_t = 4
	KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE    Virtual_memory_guard_exception_code_t = 8
	KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE    Virtual_memory_guard_exception_code_t = 9
	KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE         Virtual_memory_guard_exception_code_t = 10
	KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE         Virtual_memory_guard_exception_code_t = 11
	KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION  Virtual_memory_guard_exception_code_t = 12
	KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY    Virtual_memory_guard_exception_code_t = 13
	KGUARD_EXC_SEC_ACCESS_FAULT              Virtual_memory_guard_exception_code_t = 98
	KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT        Virtual_memory_guard_exception_code_t = 99
	KGUARD_EXC_SEC_COPY_DENIED               Virtual_memory_guard_exception_code_t = 100
	KGUARD_EXC_SEC_SHARING_DENIED            Virtual_memory_guard_exception_code_t = 101
	KGUARD_EXC_MTE_SYNC_FAULT                Virtual_memory_guard_exception_code_t = 200
	KGUARD_EXC_MTE_ASYNC_USER_FAULT          Virtual_memory_guard_exception_code_t = 201
	KGUARD_EXC_MTE_ASYNC_KERN_FAULT          Virtual_memory_guard_exception_code_t = 202
	KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 203
	KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 204
)

func (Virtual_memory_guard_exception_code_t) String

type Xpc_listener_create_flags_t

type Xpc_listener_create_flags_t int64
const (
	XPC_LISTENER_CREATE_NONE             Xpc_listener_create_flags_t = 0
	XPC_LISTENER_CREATE_INACTIVE         Xpc_listener_create_flags_t = 1
	XPC_LISTENER_CREATE_FORCE_MACH       Xpc_listener_create_flags_t = 2
	XPC_LISTENER_CREATE_FORCE_XPCSERVICE Xpc_listener_create_flags_t = 4
)

func (Xpc_listener_create_flags_t) String

type Xpc_session_create_flags_t

type Xpc_session_create_flags_t int64
const (
	XPC_SESSION_CREATE_NONE            Xpc_session_create_flags_t = 0
	XPC_SESSION_CREATE_INACTIVE        Xpc_session_create_flags_t = 1
	XPC_SESSION_CREATE_MACH_PRIVILEGED Xpc_session_create_flags_t = 2
)

func (Xpc_session_create_flags_t) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL