driverkit

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package driverkit provides a fluent Go API over the macOS DriverKit framework.

Construction

New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.

Lifecycle

A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.

Index

Constants

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

Variables

This section is empty.

Functions

func BuiltinTrap

func BuiltinTrap()

BuiltinTrap calls the DriverKit framework function __builtin_trap.

func Crc32

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

Crc32 calls the DriverKit framework function crc32.

func DEQUEUEELTCLEANUP

func DEQUEUEELTCLEANUP(elt unsafe.Pointer)

DEQUEUEELTCLEANUP calls the DriverKit framework function __DEQUEUE_ELT_CLEANUP.

func DequeueHead

func DequeueHead(que unsafe.Pointer) unsafe.Pointer

DequeueHead calls the DriverKit framework function dequeue_head.

func DequeueTail

func DequeueTail(que unsafe.Pointer) unsafe.Pointer

DequeueTail calls the DriverKit framework function dequeue_tail.

func EnqueueHead

func EnqueueHead(que unsafe.Pointer, elt unsafe.Pointer)

EnqueueHead calls the DriverKit framework function enqueue_head.

func EnqueueTail

func EnqueueTail(que unsafe.Pointer, elt unsafe.Pointer)

EnqueueTail calls the DriverKit framework function enqueue_tail.

func GIOBufferMemoryDescriptorMetaClass

func GIOBufferMemoryDescriptorMetaClass() uintptr

GIOBufferMemoryDescriptorMetaClass returns the address of the symbol gIOBufferMemoryDescriptorMetaClass.

func GIOCommandMetaClass

func GIOCommandMetaClass() uintptr

GIOCommandMetaClass returns the address of the symbol gIOCommandMetaClass.

func GIOCommandPoolMetaClass

func GIOCommandPoolMetaClass() uintptr

GIOCommandPoolMetaClass returns the address of the symbol gIOCommandPoolMetaClass.

func GIODMACommandMetaClass

func GIODMACommandMetaClass() uintptr

GIODMACommandMetaClass returns the address of the symbol gIODMACommandMetaClass.

func GIODataQueueDispatchSourceMetaClass

func GIODataQueueDispatchSourceMetaClass() uintptr

GIODataQueueDispatchSourceMetaClass returns the address of the symbol gIODataQueueDispatchSourceMetaClass.

func GIODispatchQueueMetaClass

func GIODispatchQueueMetaClass() uintptr

GIODispatchQueueMetaClass returns the address of the symbol gIODispatchQueueMetaClass.

func GIODispatchSourceMetaClass

func GIODispatchSourceMetaClass() uintptr

GIODispatchSourceMetaClass returns the address of the symbol gIODispatchSourceMetaClass.

func GIOHistogramReporterMetaClass

func GIOHistogramReporterMetaClass() uintptr

GIOHistogramReporterMetaClass returns the address of the symbol gIOHistogramReporterMetaClass.

func GIOInterruptDispatchSourceMetaClass

func GIOInterruptDispatchSourceMetaClass() uintptr

GIOInterruptDispatchSourceMetaClass returns the address of the symbol gIOInterruptDispatchSourceMetaClass.

func GIOMemoryDescriptorMetaClass

func GIOMemoryDescriptorMetaClass() uintptr

GIOMemoryDescriptorMetaClass returns the address of the symbol gIOMemoryDescriptorMetaClass.

func GIOMemoryMapMetaClass

func GIOMemoryMapMetaClass() uintptr

GIOMemoryMapMetaClass returns the address of the symbol gIOMemoryMapMetaClass.

func GIOReportLegendMetaClass

func GIOReportLegendMetaClass() uintptr

GIOReportLegendMetaClass returns the address of the symbol gIOReportLegendMetaClass.

func GIOReporterMetaClass

func GIOReporterMetaClass() uintptr

GIOReporterMetaClass returns the address of the symbol gIOReporterMetaClass.

func GIOServiceMetaClass

func GIOServiceMetaClass() uintptr

GIOServiceMetaClass returns the address of the symbol gIOServiceMetaClass.

func GIOServiceNotificationDispatchSourceMetaClass

func GIOServiceNotificationDispatchSourceMetaClass() uintptr

GIOServiceNotificationDispatchSourceMetaClass returns the address of the symbol gIOServiceNotificationDispatchSourceMetaClass.

func GIOServiceStateNotificationDispatchSourceMetaClass

func GIOServiceStateNotificationDispatchSourceMetaClass() uintptr

GIOServiceStateNotificationDispatchSourceMetaClass returns the address of the symbol gIOServiceStateNotificationDispatchSourceMetaClass.

func GIOSimpleReporterMetaClass

func GIOSimpleReporterMetaClass() uintptr

GIOSimpleReporterMetaClass returns the address of the symbol gIOSimpleReporterMetaClass.

func GIOStateReporterMetaClass

func GIOStateReporterMetaClass() uintptr

GIOStateReporterMetaClass returns the address of the symbol gIOStateReporterMetaClass.

func GIOTimerDispatchSourceMetaClass

func GIOTimerDispatchSourceMetaClass() uintptr

GIOTimerDispatchSourceMetaClass returns the address of the symbol gIOTimerDispatchSourceMetaClass.

func GIOUserClientMetaClass

func GIOUserClientMetaClass() uintptr

GIOUserClientMetaClass returns the address of the symbol gIOUserClientMetaClass.

func GOSActionMetaClass

func GOSActionMetaClass() uintptr

GOSActionMetaClass returns the address of the symbol gOSActionMetaClass.

func GOSAction_IOUserClient_KernelCompletionMetaClass

func GOSAction_IOUserClient_KernelCompletionMetaClass() uintptr

GOSAction_IOUserClient_KernelCompletionMetaClass returns the address of the symbol gOSAction_IOUserClient_KernelCompletionMetaClass.

func GOSArrayMetaClass

func GOSArrayMetaClass() uintptr

GOSArrayMetaClass returns the address of the symbol gOSArrayMetaClass.

func GOSBooleanMetaClass

func GOSBooleanMetaClass() uintptr

GOSBooleanMetaClass returns the address of the symbol gOSBooleanMetaClass.

func GOSBundleMetaClass

func GOSBundleMetaClass() uintptr

GOSBundleMetaClass returns the address of the symbol gOSBundleMetaClass.

func GOSCollectionMetaClass

func GOSCollectionMetaClass() uintptr

GOSCollectionMetaClass returns the address of the symbol gOSCollectionMetaClass.

func GOSContainerMetaClass

func GOSContainerMetaClass() uintptr

GOSContainerMetaClass returns the address of the symbol gOSContainerMetaClass.

func GOSDataMetaClass

func GOSDataMetaClass() uintptr

GOSDataMetaClass returns the address of the symbol gOSDataMetaClass.

func GOSDictionaryMetaClass

func GOSDictionaryMetaClass() uintptr

GOSDictionaryMetaClass returns the address of the symbol gOSDictionaryMetaClass.

func GOSMappedFileMetaClass

func GOSMappedFileMetaClass() uintptr

GOSMappedFileMetaClass returns the address of the symbol gOSMappedFileMetaClass.

func GOSNumberMetaClass

func GOSNumberMetaClass() uintptr

GOSNumberMetaClass returns the address of the symbol gOSNumberMetaClass.

func GOSObjectMetaClass

func GOSObjectMetaClass() uintptr

GOSObjectMetaClass returns the address of the symbol gOSObjectMetaClass.

func GOSOrderedSetMetaClass

func GOSOrderedSetMetaClass() uintptr

GOSOrderedSetMetaClass returns the address of the symbol gOSOrderedSetMetaClass.

func GOSSerializationMetaClass

func GOSSerializationMetaClass() uintptr

GOSSerializationMetaClass returns the address of the symbol gOSSerializationMetaClass.

func GOSSetMetaClass

func GOSSetMetaClass() uintptr

GOSSetMetaClass returns the address of the symbol gOSSetMetaClass.

func GOSStringMetaClass

func GOSStringMetaClass() uintptr

GOSStringMetaClass returns the address of the symbol gOSStringMetaClass.

func IOBufferMemoryDescriptor_Class

func IOBufferMemoryDescriptor_Class() uintptr

IOBufferMemoryDescriptor_Class returns the address of the symbol IOBufferMemoryDescriptor_Class.

func IOCommandPool_Class

func IOCommandPool_Class() uintptr

IOCommandPool_Class returns the address of the symbol IOCommandPool_Class.

func IOCommand_Class

func IOCommand_Class() uintptr

IOCommand_Class returns the address of the symbol IOCommand_Class.

func IODMACommand_Class

func IODMACommand_Class() uintptr

IODMACommand_Class returns the address of the symbol IODMACommand_Class.

func IODataQueueDispatchSource_Class

func IODataQueueDispatchSource_Class() uintptr

IODataQueueDispatchSource_Class returns the address of the symbol IODataQueueDispatchSource_Class.

func IODelay

func IODelay(us uint64)

IODelay calls the DriverKit framework function IODelay.

func IODispatchQueue_Class

func IODispatchQueue_Class() uintptr

IODispatchQueue_Class returns the address of the symbol IODispatchQueue_Class.

func IODispatchSource_Class

func IODispatchSource_Class() uintptr

IODispatchSource_Class returns the address of the symbol IODispatchSource_Class.

func IOFixedDivide

func IOFixedDivide(a int, b int) int

IOFixedDivide calls the DriverKit framework function IOFixedDivide.

func IOFixedMultiply

func IOFixedMultiply(a int, b int) int

IOFixedMultiply calls the DriverKit framework function IOFixedMultiply.

func IOFree

func IOFree(address unsafe.Pointer, length int)

IOFree calls the DriverKit framework function IOFree.

func IOHistogramReporter_Class

func IOHistogramReporter_Class() uintptr

IOHistogramReporter_Class returns the address of the symbol IOHistogramReporter_Class.

func IOInterruptDispatchSource_Class

func IOInterruptDispatchSource_Class() uintptr

IOInterruptDispatchSource_Class returns the address of the symbol IOInterruptDispatchSource_Class.

func IOLockAlloc

func IOLockAlloc() unsafe.Pointer

IOLockAlloc calls the DriverKit framework function IOLockAlloc.

func IOLockAssert

func IOLockAssert(lock unsafe.Pointer, type_ IOLockAssertState)

IOLockAssert calls the DriverKit framework function IOLockAssert.

func IOLockFree

func IOLockFree(lock unsafe.Pointer)

IOLockFree calls the DriverKit framework function IOLockFree.

func IOLockLock

func IOLockLock(lock unsafe.Pointer)

IOLockLock calls the DriverKit framework function IOLockLock.

func IOLockTryLock

func IOLockTryLock(lock unsafe.Pointer) bool

IOLockTryLock calls the DriverKit framework function IOLockTryLock.

func IOLockUnlock

func IOLockUnlock(lock unsafe.Pointer)

IOLockUnlock calls the DriverKit framework function IOLockUnlock.

func IOLogBuffer

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

IOLogBuffer calls the DriverKit framework function IOLogBuffer.

func IOLogv

func IOLogv(format string, ap string) int

IOLogv calls the DriverKit framework function IOLogv.

func IOMalloc

func IOMalloc(length int) unsafe.Pointer

IOMalloc calls the DriverKit framework function IOMalloc.

func IOMallocTyped

func IOMallocTyped(length int, typeId uint64) unsafe.Pointer

IOMallocTyped calls the DriverKit framework function IOMallocTyped.

func IOMallocZero

func IOMallocZero(length int) unsafe.Pointer

IOMallocZero calls the DriverKit framework function IOMallocZero.

func IOMallocZeroTyped

func IOMallocZeroTyped(length int, typeId uint64) unsafe.Pointer

IOMallocZeroTyped calls the DriverKit framework function IOMallocZeroTyped.

func IOMemoryDescriptor_Class

func IOMemoryDescriptor_Class() uintptr

IOMemoryDescriptor_Class returns the address of the symbol IOMemoryDescriptor_Class.

func IOMemoryMap_Class

func IOMemoryMap_Class() uintptr

IOMemoryMap_Class returns the address of the symbol IOMemoryMap_Class.

func IOParseBootArgNumber

func IOParseBootArgNumber(argString string, argPtr unsafe.Pointer, maxLen int) bool

IOParseBootArgNumber calls the DriverKit framework function IOParseBootArgNumber.

func IOParseBootArgString

func IOParseBootArgString(argString string, argPtr string, strlen int) bool

IOParseBootArgString calls the DriverKit framework function IOParseBootArgString.

func IORPCMessageFromMach

func IORPCMessageFromMach(msg unsafe.Pointer, reply bool) unsafe.Pointer

IORPCMessageFromMach calls the DriverKit framework function IORPCMessageFromMach.

func IORWLockAlloc

func IORWLockAlloc() unsafe.Pointer

IORWLockAlloc calls the DriverKit framework function IORWLockAlloc.

func IORWLockFree

func IORWLockFree(lock unsafe.Pointer)

IORWLockFree calls the DriverKit framework function IORWLockFree.

func IORWLockRead

func IORWLockRead(lock unsafe.Pointer)

IORWLockRead calls the DriverKit framework function IORWLockRead.

func IORWLockUnlock

func IORWLockUnlock(lock unsafe.Pointer)

IORWLockUnlock calls the DriverKit framework function IORWLockUnlock.

func IORWLockWrite

func IORWLockWrite(lock unsafe.Pointer)

IORWLockWrite calls the DriverKit framework function IORWLockWrite.

func IORecursiveConditionLockAlloc

func IORecursiveConditionLockAlloc() unsafe.Pointer

IORecursiveConditionLockAlloc calls the DriverKit framework function IORecursiveConditionLockAlloc.

func IORecursiveConditionLockFree

func IORecursiveConditionLockFree(lock unsafe.Pointer)

IORecursiveConditionLockFree calls the DriverKit framework function IORecursiveConditionLockFree.

func IORecursiveConditionLockHaveLock

func IORecursiveConditionLockHaveLock(lock unsafe.Pointer) bool

IORecursiveConditionLockHaveLock calls the DriverKit framework function IORecursiveConditionLockHaveLock.

func IORecursiveConditionLockLock

func IORecursiveConditionLockLock(lock unsafe.Pointer)

IORecursiveConditionLockLock calls the DriverKit framework function IORecursiveConditionLockLock.

func IORecursiveConditionLockTryLock

func IORecursiveConditionLockTryLock(lock unsafe.Pointer) bool

IORecursiveConditionLockTryLock calls the DriverKit framework function IORecursiveConditionLockTryLock.

func IORecursiveConditionLockUnlock

func IORecursiveConditionLockUnlock(lock unsafe.Pointer)

IORecursiveConditionLockUnlock calls the DriverKit framework function IORecursiveConditionLockUnlock.

func IORecursiveLockAlloc

func IORecursiveLockAlloc() unsafe.Pointer

IORecursiveLockAlloc calls the DriverKit framework function IORecursiveLockAlloc.

func IORecursiveLockFree

func IORecursiveLockFree(lock unsafe.Pointer)

IORecursiveLockFree calls the DriverKit framework function IORecursiveLockFree.

func IORecursiveLockHaveLock

func IORecursiveLockHaveLock(lock unsafe.Pointer) bool

IORecursiveLockHaveLock calls the DriverKit framework function IORecursiveLockHaveLock.

func IORecursiveLockLock

func IORecursiveLockLock(lock unsafe.Pointer)

IORecursiveLockLock calls the DriverKit framework function IORecursiveLockLock.

func IORecursiveLockTryLock

func IORecursiveLockTryLock(lock unsafe.Pointer) bool

IORecursiveLockTryLock calls the DriverKit framework function IORecursiveLockTryLock.

func IORecursiveLockUnlock

func IORecursiveLockUnlock(lock unsafe.Pointer)

IORecursiveLockUnlock calls the DriverKit framework function IORecursiveLockUnlock.

func IOReportLegend_Class

func IOReportLegend_Class() uintptr

IOReportLegend_Class returns the address of the symbol IOReportLegend_Class.

func IOReporter_Class

func IOReporter_Class() uintptr

IOReporter_Class returns the address of the symbol IOReporter_Class.

func IOServiceNotificationDispatchSource_Class

func IOServiceNotificationDispatchSource_Class() uintptr

IOServiceNotificationDispatchSource_Class returns the address of the symbol IOServiceNotificationDispatchSource_Class.

func IOServiceStateNotificationDispatchSource_Class

func IOServiceStateNotificationDispatchSource_Class() uintptr

IOServiceStateNotificationDispatchSource_Class returns the address of the symbol IOServiceStateNotificationDispatchSource_Class.

func IOService_Class

func IOService_Class() uintptr

IOService_Class returns the address of the symbol IOService_Class.

func IOSimpleReporter_Class

func IOSimpleReporter_Class() uintptr

IOSimpleReporter_Class returns the address of the symbol IOSimpleReporter_Class.

func IOSleep

func IOSleep(ms uint64)

IOSleep calls the DriverKit framework function IOSleep.

func IOStateReporter_Class

func IOStateReporter_Class() uintptr

IOStateReporter_Class returns the address of the symbol IOStateReporter_Class.

func IOSysCtlByName

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

IOSysCtlByName calls the DriverKit framework function IOSysCtlByName.

func IOThreadLocalStorageGet

func IOThreadLocalStorageGet(key uint64) unsafe.Pointer

IOThreadLocalStorageGet calls the DriverKit framework function IOThreadLocalStorageGet.

func IOThreadLocalStorageKeyCreate

func IOThreadLocalStorageKeyCreate() (result int, key uint64)

IOThreadLocalStorageKeyCreate calls the DriverKit framework function IOThreadLocalStorageKeyCreate.

func IOThreadLocalStorageKeyDelete

func IOThreadLocalStorageKeyDelete(key uint64) int

IOThreadLocalStorageKeyDelete calls the DriverKit framework function IOThreadLocalStorageKeyDelete.

func IOThreadLocalStorageSet

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

IOThreadLocalStorageSet calls the DriverKit framework function IOThreadLocalStorageSet.

func IOTimerDispatchSource_Class

func IOTimerDispatchSource_Class() uintptr

IOTimerDispatchSource_Class returns the address of the symbol IOTimerDispatchSource_Class.

func IOUserClient_Class

func IOUserClient_Class() uintptr

IOUserClient_Class returns the address of the symbol IOUserClient_Class.

func IOVMPageSize

func IOVMPageSize() uint64

IOVMPageSize returns the value of the constant IOVMPageSize.

func Insque

func Insque(entry unsafe.Pointer, pred unsafe.Pointer)

Insque calls the DriverKit framework function insque.

func KOSBooleanFalse

func KOSBooleanFalse() uintptr

KOSBooleanFalse returns the address of the symbol kOSBooleanFalse.

func KOSBooleanTrue

func KOSBooleanTrue() uintptr

KOSBooleanTrue returns the address of the symbol kOSBooleanTrue.

func Movqueue

func Movqueue(old unsafe.Pointer, new_ unsafe.Pointer)

Movqueue calls the DriverKit framework function movqueue.

func OSAction_Class

func OSAction_Class() uintptr

OSAction_Class returns the address of the symbol OSAction_Class.

func OSAction_IOUserClient_KernelCompletion_Class

func OSAction_IOUserClient_KernelCompletion_Class() uintptr

OSAction_IOUserClient_KernelCompletion_Class returns the address of the symbol OSAction_IOUserClient_KernelCompletion_Class.

func OSArrayAppendValue

func OSArrayAppendValue(value OSObjectPtr) (ok bool, object int32)

OSArrayAppendValue calls the DriverKit framework function OSArrayAppendValue.

func OSArrayApply

func OSArrayApply(applier func(unsafe.Pointer) bool) (ok bool, object int32)

OSArrayApply calls the DriverKit framework function OSArrayApply.

func OSArrayCreate

func OSArrayCreate() unsafe.Pointer

OSArrayCreate calls the DriverKit framework function OSArrayCreate.

func OSArrayGetCount

func OSArrayGetCount() (result uint32, object int32)

OSArrayGetCount calls the DriverKit framework function OSArrayGetCount.

func OSArrayGetStringValue

func OSArrayGetStringValue(index int) (result string, object int32)

OSArrayGetStringValue calls the DriverKit framework function OSArrayGetStringValue.

func OSArrayGetUInt64Value

func OSArrayGetUInt64Value(index int) (result uint64, object int32)

OSArrayGetUInt64Value calls the DriverKit framework function OSArrayGetUInt64Value.

func OSArrayReplaceValue

func OSArrayReplaceValue(index int, value OSObjectPtr) (ok bool, object int32)

OSArrayReplaceValue calls the DriverKit framework function OSArrayReplaceValue.

func OSArraySetStringValue

func OSArraySetStringValue(index int, value string) (object int32)

OSArraySetStringValue calls the DriverKit framework function OSArraySetStringValue.

func OSArraySetUInt64Value

func OSArraySetUInt64Value(index int, value uint64) (object int32)

OSArraySetUInt64Value calls the DriverKit framework function OSArraySetUInt64Value.

func OSArraySetValue

func OSArraySetValue(index int, value OSObjectPtr) (ok bool, object int32)

OSArraySetValue calls the DriverKit framework function OSArraySetValue.

func OSArray_Class

func OSArray_Class() uintptr

OSArray_Class returns the address of the symbol OSArray_Class.

func OSBoolean_Class

func OSBoolean_Class() uintptr

OSBoolean_Class returns the address of the symbol OSBoolean_Class.

func OSBundle_Class

func OSBundle_Class() uintptr

OSBundle_Class returns the address of the symbol OSBundle_Class.

func OSCollectionTypeID

func OSCollectionTypeID(object OSObjectPtr) uint64

OSCollectionTypeID calls the DriverKit framework function OSCollectionTypeID.

func OSCollectionTypeName

func OSCollectionTypeName(t uint64) string

OSCollectionTypeName calls the DriverKit framework function OSCollectionTypeName.

func OSCollection_Class

func OSCollection_Class() uintptr

OSCollection_Class returns the address of the symbol OSCollection_Class.

func OSCollectionsInitialize

func OSCollectionsInitialize()

OSCollectionsInitialize calls the DriverKit framework function OSCollectionsInitialize.

func OSContainer_Class

func OSContainer_Class() uintptr

OSContainer_Class returns the address of the symbol OSContainer_Class.

func OSCreateSerializationFromBytes

func OSCreateSerializationFromBytes(data unsafe.Pointer, length int, freeBuffer func(unsafe.Pointer, int)) unsafe.Pointer

OSCreateSerializationFromBytes calls the DriverKit framework function OSCreateSerializationFromBytes.

func OSCreateSerializationFromObject

func OSCreateSerializationFromObject(object OSObjectPtr) unsafe.Pointer

OSCreateSerializationFromObject calls the DriverKit framework function OSCreateSerializationFromObject.

func OSDataAppendBytes

func OSDataAppendBytes(data2 unsafe.Pointer, length int) (ok bool, data int32)

OSDataAppendBytes calls the DriverKit framework function OSDataAppendBytes.

func OSDataCreate

func OSDataCreate(data unsafe.Pointer, length int) unsafe.Pointer

OSDataCreate calls the DriverKit framework function OSDataCreate.

func OSDataGetBytes

func OSDataGetBytes(buffer unsafe.Pointer, offset int, length int) (result int, object int32)

OSDataGetBytes calls the DriverKit framework function OSDataGetBytes.

func OSDataGetBytesPtr

func OSDataGetBytesPtr(offset int, length int) (result unsafe.Pointer, object int32)

OSDataGetBytesPtr calls the DriverKit framework function OSDataGetBytesPtr.

func OSDataGetLength

func OSDataGetLength() (result int, object int32)

OSDataGetLength calls the DriverKit framework function OSDataGetLength.

func OSData_Class

func OSData_Class() uintptr

OSData_Class returns the address of the symbol OSData_Class.

func OSDictionaryApply

func OSDictionaryApply(applier func(string, unsafe.Pointer) bool) (ok bool, object int32)

OSDictionaryApply calls the DriverKit framework function OSDictionaryApply.

func OSDictionaryCreate

func OSDictionaryCreate() unsafe.Pointer

OSDictionaryCreate calls the DriverKit framework function OSDictionaryCreate.

func OSDictionaryGetCount

func OSDictionaryGetCount() (result uint32, object int32)

OSDictionaryGetCount calls the DriverKit framework function OSDictionaryGetCount.

func OSDictionaryGetStringValue

func OSDictionaryGetStringValue(key string) (result string, object int32)

OSDictionaryGetStringValue calls the DriverKit framework function OSDictionaryGetStringValue.

func OSDictionaryGetUInt64Value

func OSDictionaryGetUInt64Value(key string) (result uint64, object int32)

OSDictionaryGetUInt64Value calls the DriverKit framework function OSDictionaryGetUInt64Value.

func OSDictionarySetStringValue

func OSDictionarySetStringValue(key string, value string) (object int32)

OSDictionarySetStringValue calls the DriverKit framework function OSDictionarySetStringValue.

func OSDictionarySetUInt64Value

func OSDictionarySetUInt64Value(key string, value uint64) (object int32)

OSDictionarySetUInt64Value calls the DriverKit framework function OSDictionarySetUInt64Value.

func OSDictionarySetValue

func OSDictionarySetValue(key string, value OSObjectPtr) (ok bool, object int32)

OSDictionarySetValue calls the DriverKit framework function OSDictionarySetValue.

func OSDictionary_Class

func OSDictionary_Class() uintptr

OSDictionary_Class returns the address of the symbol OSDictionary_Class.

func OSMappedFile_Class

func OSMappedFile_Class() uintptr

OSMappedFile_Class returns the address of the symbol OSMappedFile_Class.

func OSNumberCreateWithUInt64Value

func OSNumberCreateWithUInt64Value(value uint64) unsafe.Pointer

OSNumberCreateWithUInt64Value calls the DriverKit framework function OSNumberCreateWithUInt64Value.

func OSNumberGetUInt64Value

func OSNumberGetUInt64Value() (result uint64, object int32)

OSNumberGetUInt64Value calls the DriverKit framework function OSNumberGetUInt64Value.

func OSNumber_Class

func OSNumber_Class() uintptr

OSNumber_Class returns the address of the symbol OSNumber_Class.

func OSObjectAllocate

func OSObjectAllocate(pObject obj.Object) (result int, meta int32)

OSObjectAllocate calls the DriverKit framework function OSObjectAllocate.

func OSObjectLog

func OSObjectLog(object OSObjectPtr)

OSObjectLog calls the DriverKit framework function OSObjectLog.

func OSObjectRelease

func OSObjectRelease(container OSObjectPtr)

OSObjectRelease calls the DriverKit framework function OSObjectRelease.

func OSObjectRetain

func OSObjectRetain(container OSObjectPtr)

OSObjectRetain calls the DriverKit framework function OSObjectRetain.

func OSObject_Class

func OSObject_Class() uintptr

OSObject_Class returns the address of the symbol OSObject_Class.

func OSOrderedSet_Class

func OSOrderedSet_Class() uintptr

OSOrderedSet_Class returns the address of the symbol OSOrderedSet_Class.

func OSSerializationGetBytes

func OSSerializationGetBytes() (result unsafe.Pointer, serial int32, length int)

OSSerializationGetBytes calls the DriverKit framework function OSSerializationGetBytes.

func OSSerialization_Class

func OSSerialization_Class() uintptr

OSSerialization_Class returns the address of the symbol OSSerialization_Class.

func OSSet_Class

func OSSet_Class() uintptr

OSSet_Class returns the address of the symbol OSSet_Class.

func OSStringCreate

func OSStringCreate(cstring unsafe.Pointer, length int) unsafe.Pointer

OSStringCreate calls the DriverKit framework function OSStringCreate.

func OSStringGetLength

func OSStringGetLength() (result int, str int32)

OSStringGetLength calls the DriverKit framework function OSStringGetLength.

func OSStringGetStringPtr

func OSStringGetStringPtr() (result string, object int32)

OSStringGetStringPtr calls the DriverKit framework function OSStringGetStringPtr.

func OSString_Class

func OSString_Class() uintptr

OSString_Class returns the address of the symbol OSString_Class.

func OSSynchronizeIO

func OSSynchronizeIO()

OSSynchronizeIO calls the DriverKit framework function OSSynchronizeIO.

func QUEUEELTVALIDATE

func QUEUEELTVALIDATE(elt unsafe.Pointer)

QUEUEELTVALIDATE calls the DriverKit framework function __QUEUE_ELT_VALIDATE.

func QUEUEELTVALIDATENEXT

func QUEUEELTVALIDATENEXT(elt unsafe.Pointer) unsafe.Pointer

QUEUEELTVALIDATENEXT calls the DriverKit framework function __QUEUE_ELT_VALIDATE_NEXT.

func QUEUEELTVALIDATEPREV

func QUEUEELTVALIDATEPREV(elt unsafe.Pointer) unsafe.Pointer

QUEUEELTVALIDATEPREV calls the DriverKit framework function __QUEUE_ELT_VALIDATE_PREV.

func ReQueueHead

func ReQueueHead(que unsafe.Pointer, elt unsafe.Pointer)

ReQueueHead calls the DriverKit framework function re_queue_head.

func ReQueueTail

func ReQueueTail(que unsafe.Pointer, elt unsafe.Pointer)

ReQueueTail calls the DriverKit framework function re_queue_tail.

func ReadRandom

func ReadRandom(buffer unsafe.Pointer, numBytes int)

ReadRandom calls the DriverKit framework function read_random.

func Remque

func Remque(elt unsafe.Pointer)

Remque calls the DriverKit framework function remque.

func Remqueue

func Remqueue(elt unsafe.Pointer)

Remqueue calls the DriverKit framework function remqueue.

Types

type Clockid added in v0.17.0

type Clockid int32
const (
	ClockidRealtime           Clockid = 0
	ClockidMonotonic          Clockid = 6
	ClockidMonotonicRaw       Clockid = 4
	ClockidMonotonicRawApprox Clockid = 5
	ClockidUptimeRaw          Clockid = 8
	ClockidUptimeRawApprox    Clockid = 9
	ClockidProcessCputimeID   Clockid = 12
	ClockidThreadCputimeID    Clockid = 16
)

func (Clockid) String added in v0.17.0

func (e Clockid) String() string

String returns the Clockid constant's name, or its numeric form when the value is not a known constant.

type DispatchAutoreleaseFrequency added in v0.17.0

type DispatchAutoreleaseFrequency uint64
const (
	DispatchAutoreleaseFrequencyInherit  DispatchAutoreleaseFrequency = 0
	DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1
	DispatchAutoreleaseFrequencyNever    DispatchAutoreleaseFrequency = 2
)

func (DispatchAutoreleaseFrequency) String added in v0.17.0

String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.

type DispatchBlockFlags added in v0.17.0

type DispatchBlockFlags uint64

Bitmask — values may be combined with |.

const (
	DispatchBlockFlagsBarrier         DispatchBlockFlags = 1
	DispatchBlockFlagsDetached        DispatchBlockFlags = 2
	DispatchBlockFlagsAssignCurrent   DispatchBlockFlags = 4
	DispatchBlockFlagsNoQosClass      DispatchBlockFlags = 8
	DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16
	DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32
)

func (DispatchBlockFlags) String added in v0.17.0

func (e DispatchBlockFlags) String() string

String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.

type FilesecProperty added in v0.17.0

type FilesecProperty int32
const (
	FilesecPropertyOwner        FilesecProperty = 1
	FilesecPropertyGroup        FilesecProperty = 2
	FilesecPropertyUUID         FilesecProperty = 3
	FilesecPropertyMode         FilesecProperty = 4
	FilesecPropertyACL          FilesecProperty = 5
	FilesecPropertyGrpuuid      FilesecProperty = 6
	FilesecPropertyACLRaw       FilesecProperty = 100
	FilesecPropertyACLAllocsize FilesecProperty = 101
)

func (FilesecProperty) String added in v0.17.0

func (e FilesecProperty) String() string

String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.

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{}

type IOBufferMemoryDescriptor_LocalIVars

type IOBufferMemoryDescriptor_LocalIVars struct{}

type IOCallOnceFlag

type IOCallOnceFlag struct {
	Opaque int
}

Structure to test whether block has completed or not.

func IOCallOnce

func IOCallOnce(block func()) (flag IOCallOnceFlag)

IOCallOnce calls the DriverKit framework function IOCallOnce.

type IOCommandPool_IVars

type IOCommandPool_IVars struct{}

type IOCommandPool_LocalIVars

type IOCommandPool_LocalIVars struct{}

type IOCommand_IVars

type IOCommand_IVars struct{}

type IOCommand_LocalIVars

type IOCommand_LocalIVars struct{}

type IODMACommandSpecification

type IODMACommandSpecification struct {
	Options        uint64
	MaxAddressBits uint64
}

type IODMACommand_IVars

type IODMACommand_IVars struct{}

type IODMACommand_LocalIVars

type IODMACommand_LocalIVars struct{}

type IODataQueueDispatchSource_IVars

type IODataQueueDispatchSource_IVars struct{}

type IODataQueueDispatchSource_LocalIVars

type IODataQueueDispatchSource_LocalIVars struct{}

type IODispatchQueue_IVars

type IODispatchQueue_IVars struct{}

type IODispatchQueue_LocalIVars

type IODispatchQueue_LocalIVars struct{}

type IODispatchSource_IVars

type IODispatchSource_IVars struct{}

type IODispatchSource_LocalIVars

type IODispatchSource_LocalIVars struct{}

type IOHistogramReportValues

type IOHistogramReportValues struct {
	BucketHits uint64
	BucketMin  int64
	BucketMax  int64
	BucketSum  int64
}

type IOHistogramReporter_IVars

type IOHistogramReporter_IVars struct{}

type IOHistogramReporter_LocalIVars

type IOHistogramReporter_LocalIVars struct{}

type IOHistogramSegmentConfig

type IOHistogramSegmentConfig struct {
	BaseBucketWidth    uint32
	ScaleFlag          uint32
	SegmentIdx         uint32
	SegmentBucketCount 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{}

type IOInterruptDispatchSource_LocalIVars

type IOInterruptDispatchSource_LocalIVars struct{}

type IOLock

type IOLock struct{}

type IOLockAssertState

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

func (IOLockAssertState) String

func (e IOLockAssertState) String() string

String returns the IOLockAssertState constant's name, or its numeric form when the value is not a known constant.

type IOMDPrivateState

type IOMDPrivateState struct {
	Length  uint64
	Options uint64
}

type IOMemoryDescriptor_IVars

type IOMemoryDescriptor_IVars struct{}

type IOMemoryDescriptor_LocalIVars

type IOMemoryDescriptor_LocalIVars struct{}

type IOMemoryMapPrivateState

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

type IOMemoryMap_IVars

type IOMemoryMap_IVars struct{}

type IOMemoryMap_LocalIVars

type IOMemoryMap_LocalIVars struct{}

type IONamedValue

type IONamedValue struct {
	Value int32
	Name  unsafe.Pointer
}

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   unsafe.Pointer
	Reply     unsafe.Pointer
	SendSize  uint32
	ReplySize uint32
}

type IORPCMessage

type IORPCMessage struct {
	// contains filtered or unexported fields
}

The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.

func (*IORPCMessage) AsFlags added in v0.18.0

func (u *IORPCMessage) AsFlags() uint64

AsFlags returns the flags field, read from the backing bytes at offset 8.

func (*IORPCMessage) AsMsgid added in v0.18.0

func (u *IORPCMessage) AsMsgid() uint64

AsMsgid returns the msgid field, read from the backing bytes at offset 0.

func (*IORPCMessage) AsObjectRefs added in v0.18.0

func (u *IORPCMessage) AsObjectRefs() uint64

AsObjectRefs returns the objectRefs field, read from the backing bytes at offset 16.

type IORPCMessageErrorReturn

type IORPCMessageErrorReturn struct {
	Mach    IORPCMessageMach
	Content IORPCMessageErrorReturnContent
}

type IORPCMessageErrorReturnContent

type IORPCMessageErrorReturnContent struct {
	Hdr    IORPCMessage
	Result int32
	Pad    uint32
}

type IORPCMessageMach

type IORPCMessageMach struct {
	// contains filtered or unexported fields
}

The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.

type IORWLock

type IORWLock struct{}

type IORWLockAssertState

type IORWLockAssertState int32

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

String returns the IORWLockAssertState constant's name, or its numeric form when the value is not a known constant.

type IORecursiveConditionLock

type IORecursiveConditionLock struct{}

type IORecursiveLock

type IORecursiveLock struct{}

type IOReportChannel

type IOReportChannel struct {
	ChannelID   uint64
	ChannelType IOReportChannelType
}

type IOReportChannelList

type IOReportChannelList struct {
	Nchannels uint32
	Channels  unsafe.Pointer
}

type IOReportChannelType

type IOReportChannelType struct {
	ReportFormat uint8
	Reserved     uint8
	Categories   uint16
	Nelements    uint16
	ElementIdx   int16
}

type IOReportElement

type IOReportElement struct {
	ProviderID  uint64
	ChannelID   uint64
	ChannelType IOReportChannelType
	Timestamp   uint64
	Values      IOReportElementValues
}

type IOReportElementValues

type IOReportElementValues struct {
	V [4]uint64
}

type IOReportInterest

type IOReportInterest struct {
	ProviderID uint64
	Channel    IOReportChannel
}

type IOReportInterestList

type IOReportInterestList struct {
	Ninterests uint32
	Interests  unsafe.Pointer
}

type IOReportLegend_IVars

type IOReportLegend_IVars struct{}

type IOReportLegend_LocalIVars

type IOReportLegend_LocalIVars struct{}

type IOReporter_IVars

type IOReporter_IVars struct{}

type IOReporter_LocalIVars

type IOReporter_LocalIVars struct{}

type IOServiceNotificationDispatchSource_IVars

type IOServiceNotificationDispatchSource_IVars struct{}

type IOServiceNotificationDispatchSource_LocalIVars

type IOServiceNotificationDispatchSource_LocalIVars struct{}

type IOServiceStateNotificationDispatchSource_IVars

type IOServiceStateNotificationDispatchSource_IVars struct{}

type IOServiceStateNotificationDispatchSource_LocalIVars

type IOServiceStateNotificationDispatchSource_LocalIVars struct{}

type IOService_IVars

type IOService_IVars struct{}

type IOService_LocalIVars

type IOService_LocalIVars struct{}

type IOSimpleArrayReportValues

type IOSimpleArrayReportValues struct {
	SimpleValues [4]int64
}

type IOSimpleReportValues

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

type IOSimpleReporter_IVars

type IOSimpleReporter_IVars struct{}

type IOSimpleReporter_LocalIVars

type IOSimpleReporter_LocalIVars struct{}

type IOStateReportValues

type IOStateReportValues struct {
	StateID          uint64
	Intransitions    uint64
	Upticks          uint64
	LastIntransition uint64
}

type IOStateReporter_IVars

type IOStateReporter_IVars struct{}

type IOStateReporter_LocalIVars

type IOStateReporter_LocalIVars struct{}

type IOTimerDispatchSource_IVars

type IOTimerDispatchSource_IVars struct{}

type IOTimerDispatchSource_LocalIVars

type IOTimerDispatchSource_LocalIVars struct{}

type IOUserClientMethodArguments

type IOUserClientMethodArguments struct {
	Version                    uint64
	Selector                   uint64
	Completion                 unsafe.Pointer
	ScalarInput                unsafe.Pointer
	ScalarInputCount           uint32
	StructureInput             unsafe.Pointer
	StructureInputDescriptor   unsafe.Pointer
	ScalarOutput               unsafe.Pointer
	ScalarOutputCount          uint32
	StructureOutput            unsafe.Pointer
	StructureOutputDescriptor  unsafe.Pointer
	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{}

type IOUserClient_LocalIVars

type IOUserClient_LocalIVars struct{}

type IOVirtualRange

type IOVirtualRange struct {
	Address uint64
	Length  uint64
}

type Idtype added in v0.17.0

type Idtype int32
const (
	IdtypeAll  Idtype = 0
	IdtypePid  Idtype = 1
	IdtypePgid Idtype = 2
)

func (Idtype) String added in v0.17.0

func (e Idtype) String() string

String returns the Idtype constant's name, or its numeric form when the value is not a known constant.

type IostatereporterValueselector added in v0.17.0

type IostatereporterValueselector int32
const (
	KInTransitions      IostatereporterValueselector = 0
	KResidencyTime      IostatereporterValueselector = 1
	KLastTransitionTime IostatereporterValueselector = 2
)

func (IostatereporterValueselector) String added in v0.17.0

String returns the IostatereporterValueselector constant's name, or its numeric form when the value is not a known constant.

type IpcInfoObjectType added in v0.17.0

type IpcInfoObjectType uint32
const (
	IpcInfoObjectTypeNone               IpcInfoObjectType = 0
	IpcInfoObjectTypeThreadControl      IpcInfoObjectType = 1
	IpcInfoObjectTypeTaskControl        IpcInfoObjectType = 2
	IpcInfoObjectTypeHost               IpcInfoObjectType = 3
	IpcInfoObjectTypeHostPriv           IpcInfoObjectType = 4
	IpcInfoObjectTypeProcessor          IpcInfoObjectType = 5
	IpcInfoObjectTypeProcessorSet       IpcInfoObjectType = 6
	IpcInfoObjectTypeProcessorSetName   IpcInfoObjectType = 7
	IpcInfoObjectTypeTimer              IpcInfoObjectType = 8
	IpcInfoObjectTypePortSubstOnce      IpcInfoObjectType = 9
	IpcInfoObjectTypeMig                IpcInfoObjectType = 10
	IpcInfoObjectTypeMemoryObject       IpcInfoObjectType = 11
	IpcInfoObjectTypeXmmPager           IpcInfoObjectType = 12
	IpcInfoObjectTypeXmmKernel          IpcInfoObjectType = 13
	IpcInfoObjectTypeXmmReply           IpcInfoObjectType = 14
	IpcInfoObjectTypeUndReply           IpcInfoObjectType = 15
	IpcInfoObjectTypeHostNotify         IpcInfoObjectType = 16
	IpcInfoObjectTypeHostSecurity       IpcInfoObjectType = 17
	IpcInfoObjectTypeLedger             IpcInfoObjectType = 18
	IpcInfoObjectTypeMainDevice         IpcInfoObjectType = 19
	IpcInfoObjectTypeTaskName           IpcInfoObjectType = 20
	IpcInfoObjectTypeSubsystem          IpcInfoObjectType = 21
	IpcInfoObjectTypeIODoneQueue        IpcInfoObjectType = 22
	IpcInfoObjectTypeSemaphore          IpcInfoObjectType = 23
	IpcInfoObjectTypeLockSet            IpcInfoObjectType = 24
	IpcInfoObjectTypeClock              IpcInfoObjectType = 25
	IpcInfoObjectTypeClockCtrl          IpcInfoObjectType = 26
	IpcInfoObjectTypeIokitIdent         IpcInfoObjectType = 27
	IpcInfoObjectTypeNamedEntry         IpcInfoObjectType = 28
	IpcInfoObjectTypeIokitConnect       IpcInfoObjectType = 29
	IpcInfoObjectTypeIokitObject        IpcInfoObjectType = 30
	IpcInfoObjectTypeUpl                IpcInfoObjectType = 31
	IpcInfoObjectTypeMemObjControl      IpcInfoObjectType = 32
	IpcInfoObjectTypeAuSessionport      IpcInfoObjectType = 33
	IpcInfoObjectTypeFileport           IpcInfoObjectType = 34
	IpcInfoObjectTypeLabelh             IpcInfoObjectType = 35
	IpcInfoObjectTypeTaskResume         IpcInfoObjectType = 36
	IpcInfoObjectTypeVoucher            IpcInfoObjectType = 37
	IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38
	IpcInfoObjectTypeWorkInterval       IpcInfoObjectType = 39
	IpcInfoObjectTypeUxHandler          IpcInfoObjectType = 40
	IpcInfoObjectTypeUextObject         IpcInfoObjectType = 41
	IpcInfoObjectTypeArcadeReg          IpcInfoObjectType = 42
	IpcInfoObjectTypeEventlink          IpcInfoObjectType = 43
	IpcInfoObjectTypeTaskInspect        IpcInfoObjectType = 44
	IpcInfoObjectTypeTaskRead           IpcInfoObjectType = 45
	IpcInfoObjectTypeThreadInspect      IpcInfoObjectType = 46
	IpcInfoObjectTypeThreadRead         IpcInfoObjectType = 47
	IpcInfoObjectTypeSuidCred           IpcInfoObjectType = 48
	IpcInfoObjectTypeHypervisor         IpcInfoObjectType = 49
	IpcInfoObjectTypeTaskIDToken        IpcInfoObjectType = 50
	IpcInfoObjectTypeTaskFatal          IpcInfoObjectType = 51
	IpcInfoObjectTypeKcdata             IpcInfoObjectType = 52
	IpcInfoObjectTypeExclavesResource   IpcInfoObjectType = 53
	IpcInfoObjectTypeThreadResume       IpcInfoObjectType = 54
	IpcInfoObjectTypeUnknown            IpcInfoObjectType = 4294967295
)

func (IpcInfoObjectType) String added in v0.17.0

func (e IpcInfoObjectType) String() string

String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.

type LaunchDataType added in v0.17.0

type LaunchDataType int32
const (
	LaunchDataTypeDictionary LaunchDataType = 1
	LaunchDataTypeArray      LaunchDataType = 2
	LaunchDataTypeFd         LaunchDataType = 3
	LaunchDataTypeInteger    LaunchDataType = 4
	LaunchDataTypeReal       LaunchDataType = 5
	LaunchDataTypeBool       LaunchDataType = 6
	LaunchDataTypeString     LaunchDataType = 7
	LaunchDataTypeOpaque     LaunchDataType = 8
	LaunchDataTypeErrno      LaunchDataType = 9
	LaunchDataTypeMachport   LaunchDataType = 10
)

func (LaunchDataType) String added in v0.17.0

func (e LaunchDataType) String() string

String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.

type MpoFlags added in v0.17.0

type MpoFlags uint32

Bitmask — values may be combined with |.

const (
	MpoFlagsPort                        MpoFlags = 0
	MpoFlagsServicePort                 MpoFlags = 1024
	MpoFlagsConnectionPort              MpoFlags = 2048
	MpoFlagsReplyPort                   MpoFlags = 4096
	MpoFlagsWeakReplyPort               MpoFlags = 16384
	MpoFlagsNotificationPort            MpoFlags = 17408
	MpoFlagsExceptionPort               MpoFlags = 32768
	MpoFlagsConnectionPortWithPortArray MpoFlags = 65536
)

func (MpoFlags) String added in v0.17.0

func (e MpoFlags) String() string

String returns the MpoFlags constant's name, or its numeric form when the value is not a known constant.

type OSActionWaitToken

type OSActionWaitToken struct{}

type OSAction_IOUserClient_KernelCompletion_IVars

type OSAction_IOUserClient_KernelCompletion_IVars struct{}

type OSAction_IOUserClient_KernelCompletion_LocalIVars

type OSAction_IOUserClient_KernelCompletion_LocalIVars struct{}

type OSAction_IVars

type OSAction_IVars struct{}

type OSAction_LocalIVars

type OSAction_LocalIVars struct{}

type OSArray_IVars

type OSArray_IVars struct{}

type OSArray_LocalIVars

type OSArray_LocalIVars struct{}

type OSBoolean_IVars

type OSBoolean_IVars struct{}

type OSBoolean_LocalIVars

type OSBoolean_LocalIVars struct{}

type OSBundle_IVars

type OSBundle_IVars struct{}

type OSBundle_LocalIVars

type OSBundle_LocalIVars struct{}

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  unsafe.Pointer
	MetaPointer  unsafe.Pointer
	Version      uint32
	InstanceSize uint32
	Resv2        [8]uint64
	New          unsafe.Pointer
	Resv3        [8]uint64
}

type OSClockid added in v0.17.0

type OSClockid uint32
const (
	OSClockidTime OSClockid = 32
)

func (OSClockid) String added in v0.17.0

func (e OSClockid) String() string

String returns the OSClockid constant's name, or its numeric form when the value is not a known constant.

type OSCollection_IVars

type OSCollection_IVars struct{}

type OSCollection_LocalIVars

type OSCollection_LocalIVars struct{}

type OSContainer_IVars

type OSContainer_IVars struct{}

type OSContainer_LocalIVars

type OSContainer_LocalIVars struct{}

type OSData_IVars

type OSData_IVars struct{}

type OSData_LocalIVars

type OSData_LocalIVars struct{}

type OSDictionary_IVars

type OSDictionary_IVars struct{}

type OSDictionary_LocalIVars

type OSDictionary_LocalIVars struct{}

type OSLogType added in v0.17.0

type OSLogType uint8
const (
	OSLogTypeDefault OSLogType = 0
	OSLogTypeInfo    OSLogType = 1
	OSLogTypeDebug   OSLogType = 2
	OSLogTypeError   OSLogType = 16
	OSLogTypeFault   OSLogType = 17
)

func (OSLogType) String added in v0.17.0

func (e OSLogType) String() string

String returns the OSLogType constant's name, or its numeric form when the value is not a known constant.

type OSMappedFile_IVars

type OSMappedFile_IVars struct{}

type OSMappedFile_LocalIVars

type OSMappedFile_LocalIVars struct{}

type OSMetaClassPrivate

type OSMetaClassPrivate struct{}

type OSNumber_IVars

type OSNumber_IVars struct{}

type OSNumber_LocalIVars

type OSNumber_LocalIVars struct{}

type OSObject

type OSObject struct{ obj.Object }

OSObject is a handle for the opaque OSObject type.

func (OSObject) IsNil added in v0.18.0

func (h OSObject) IsNil() bool

IsNil reports whether OSObject is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

type OSObjectPtr added in v0.18.0

type OSObjectPtr struct{ obj.Object }

OSObjectPtr is a handle for the opaque OSObjectPtr type.

func OSArrayGetValue

func OSArrayGetValue(index int) (result OSObjectPtr, object int32)

OSArrayGetValue calls the DriverKit framework function OSArrayGetValue.

func OSCreateObjectFromSerialization

func OSCreateObjectFromSerialization() (result OSObjectPtr, serial int32)

OSCreateObjectFromSerialization calls the DriverKit framework function OSCreateObjectFromSerialization.

func OSDictionaryGetValue

func OSDictionaryGetValue(key string) (result OSObjectPtr, object int32)

OSDictionaryGetValue calls the DriverKit framework function OSDictionaryGetValue.

func (OSObjectPtr) IsNil added in v0.18.0

func (h OSObjectPtr) IsNil() bool

IsNil reports whether OSObjectPtr is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

type OSObject_IVars

type OSObject_IVars struct{}

type OSObject_LocalIVars

type OSObject_LocalIVars struct{}

type OSOrderedSet_IVars

type OSOrderedSet_IVars struct{}

type OSOrderedSet_LocalIVars

type OSOrderedSet_LocalIVars struct{}

type OSSerialization_IVars

type OSSerialization_IVars struct{}

type OSSerialization_LocalIVars

type OSSerialization_LocalIVars struct{}

type OSSet_IVars

type OSSet_IVars struct{}

type OSSet_LocalIVars

type OSSet_LocalIVars struct{}

type OSStringStatic

type OSStringStatic struct {
	// contains filtered or unexported fields
}

The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.

func (*OSStringStatic) AsCString added in v0.18.0

func (u *OSStringStatic) AsCString() unsafe.Pointer

AsCString returns the cString field, read from the backing bytes at offset 0.

func (*OSStringStatic) AsOSString added in v0.18.0

func (u *OSStringStatic) AsOSString() unsafe.Pointer

AsOSString returns the osString field, read from the backing bytes at offset 8.

type OSString_IVars

type OSString_IVars struct{}

type OSString_LocalIVars

type OSString_LocalIVars struct{}

type QosClass added in v0.17.0

type QosClass uint32
const (
	QosClassUserInteractive QosClass = 33
	QosClassUserInitiated   QosClass = 25
	QosClassDefault         QosClass = 21
	QosClassUtility         QosClass = 17
	QosClassBackground      QosClass = 9
	QosClassUnspecified     QosClass = 0
)

func (QosClass) String added in v0.17.0

func (e QosClass) String() string

String returns the QosClass constant's name, or its numeric form when the value is not a known constant.

type QueueChainT

type QueueChainT = QueueEntry

QueueChainT is an alias for the queue_entry value type.

type QueueEntry

type QueueEntry struct {
	// contains filtered or unexported fields
}

The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.

func (*QueueEntry) AsNext added in v0.18.0

func (u *QueueEntry) AsNext() unsafe.Pointer

AsNext returns the next field, read from the backing bytes at offset 0.

func (*QueueEntry) AsPrev added in v0.18.0

func (u *QueueEntry) AsPrev() unsafe.Pointer

AsPrev returns the prev field, read from the backing bytes at offset 8.

type QueueEntryT

type QueueEntryT = *QueueEntry

QueueEntryT is an alias for the queue_entry value type.

type QueueHeadT

type QueueHeadT = QueueEntry

QueueHeadT is an alias for the queue_entry value type.

type QueueT

type QueueT = *QueueEntry

QueueT is an alias for the queue_entry value type.

type VMRangeFlags added in v0.17.0

type VMRangeFlags uint64

Bitmask — values may be combined with |.

const (
	VMRangeFlagsNone VMRangeFlags = 0
)

func (VMRangeFlags) String added in v0.17.0

func (e VMRangeFlags) String() string

String returns the VMRangeFlags constant's name, or its numeric form when the value is not a known constant.

type VMRangeFlavor added in v0.17.0

type VMRangeFlavor uint32
const (
	VMRangeFlavorInvalid VMRangeFlavor = 0
	VMRangeFlavorV1      VMRangeFlavor = 1
)

func (VMRangeFlavor) String added in v0.17.0

func (e VMRangeFlavor) String() string

String returns the VMRangeFlavor constant's name, or its numeric form when the value is not a known constant.

type VMRangeTag added in v0.17.0

type VMRangeTag uint16
const (
	VMRangeTagDefault VMRangeTag = 0
	VMRangeTagData    VMRangeTag = 1
	VMRangeTagFixed   VMRangeTag = 2
)

func (VMRangeTag) String added in v0.17.0

func (e VMRangeTag) String() string

String returns the VMRangeTag constant's name, or its numeric form when the value is not a known constant.

type VirtualMemoryGuardExceptionCode added in v0.17.0

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

func (VirtualMemoryGuardExceptionCode) String added in v0.17.0

String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.

type XpcListenerCreateFlags added in v0.17.0

type XpcListenerCreateFlags uint64

Bitmask — values may be combined with |.

const (
	XpcListenerCreateFlagsNone            XpcListenerCreateFlags = 0
	XpcListenerCreateFlagsInactive        XpcListenerCreateFlags = 1
	XpcListenerCreateFlagsForceMach       XpcListenerCreateFlags = 2
	XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4
)

func (XpcListenerCreateFlags) String added in v0.17.0

func (e XpcListenerCreateFlags) String() string

String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.

type XpcSessionCreateFlags added in v0.17.0

type XpcSessionCreateFlags uint64

Bitmask — values may be combined with |.

const (
	XpcSessionCreateFlagsNone           XpcSessionCreateFlags = 0
	XpcSessionCreateFlagsInactive       XpcSessionCreateFlags = 1
	XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2
)

func (XpcSessionCreateFlags) String added in v0.17.0

func (e XpcSessionCreateFlags) String() string

String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.

Jump to

Keyboard shortcuts

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