Documentation
¶
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
- func BuiltinTrap()
- func Crc32(crc uint32, buf unsafe.Pointer, size int) uint32
- func DEQUEUEELTCLEANUP(elt unsafe.Pointer)
- func DequeueHead(que unsafe.Pointer) unsafe.Pointer
- func DequeueTail(que unsafe.Pointer) unsafe.Pointer
- func EnqueueHead(que unsafe.Pointer, elt unsafe.Pointer)
- func EnqueueTail(que unsafe.Pointer, elt unsafe.Pointer)
- func GIOBufferMemoryDescriptorMetaClass() uintptr
- func GIOCommandMetaClass() uintptr
- func GIOCommandPoolMetaClass() uintptr
- func GIODMACommandMetaClass() uintptr
- func GIODataQueueDispatchSourceMetaClass() uintptr
- func GIODispatchQueueMetaClass() uintptr
- func GIODispatchSourceMetaClass() uintptr
- func GIOHistogramReporterMetaClass() uintptr
- func GIOInterruptDispatchSourceMetaClass() uintptr
- func GIOMemoryDescriptorMetaClass() uintptr
- func GIOMemoryMapMetaClass() uintptr
- func GIOReportLegendMetaClass() uintptr
- func GIOReporterMetaClass() uintptr
- func GIOServiceMetaClass() uintptr
- func GIOServiceNotificationDispatchSourceMetaClass() uintptr
- func GIOServiceStateNotificationDispatchSourceMetaClass() uintptr
- func GIOSimpleReporterMetaClass() uintptr
- func GIOStateReporterMetaClass() uintptr
- func GIOTimerDispatchSourceMetaClass() uintptr
- func GIOUserClientMetaClass() uintptr
- func GOSActionMetaClass() uintptr
- func GOSAction_IOUserClient_KernelCompletionMetaClass() uintptr
- func GOSArrayMetaClass() uintptr
- func GOSBooleanMetaClass() uintptr
- func GOSBundleMetaClass() uintptr
- func GOSCollectionMetaClass() uintptr
- func GOSContainerMetaClass() uintptr
- func GOSDataMetaClass() uintptr
- func GOSDictionaryMetaClass() uintptr
- func GOSMappedFileMetaClass() uintptr
- func GOSNumberMetaClass() uintptr
- func GOSObjectMetaClass() uintptr
- func GOSOrderedSetMetaClass() uintptr
- func GOSSerializationMetaClass() uintptr
- func GOSSetMetaClass() uintptr
- func GOSStringMetaClass() uintptr
- func IOBufferMemoryDescriptor_Class() uintptr
- func IOCommandPool_Class() uintptr
- func IOCommand_Class() uintptr
- func IODMACommand_Class() uintptr
- func IODataQueueDispatchSource_Class() uintptr
- func IODelay(us uint64)
- func IODispatchQueue_Class() uintptr
- func IODispatchSource_Class() uintptr
- func IOFixedDivide(a int, b int) int
- func IOFixedMultiply(a int, b int) int
- func IOFree(address unsafe.Pointer, length int)
- func IOHistogramReporter_Class() uintptr
- func IOInterruptDispatchSource_Class() uintptr
- func IOLockAlloc() unsafe.Pointer
- func IOLockAssert(lock unsafe.Pointer, type_ IOLockAssertState)
- func IOLockFree(lock unsafe.Pointer)
- func IOLockLock(lock unsafe.Pointer)
- func IOLockTryLock(lock unsafe.Pointer) bool
- func IOLockUnlock(lock unsafe.Pointer)
- func IOLogBuffer(title string, buffer unsafe.Pointer, size int)
- func IOLogv(format string, ap string) int
- func IOMalloc(length int) unsafe.Pointer
- func IOMallocTyped(length int, typeId uint64) unsafe.Pointer
- func IOMallocZero(length int) unsafe.Pointer
- func IOMallocZeroTyped(length int, typeId uint64) unsafe.Pointer
- func IOMemoryDescriptor_Class() uintptr
- func IOMemoryMap_Class() uintptr
- func IOParseBootArgNumber(argString string, argPtr unsafe.Pointer, maxLen int) bool
- func IOParseBootArgString(argString string, argPtr string, strlen int) bool
- func IORPCMessageFromMach(msg unsafe.Pointer, reply bool) unsafe.Pointer
- func IORWLockAlloc() unsafe.Pointer
- func IORWLockFree(lock unsafe.Pointer)
- func IORWLockRead(lock unsafe.Pointer)
- func IORWLockUnlock(lock unsafe.Pointer)
- func IORWLockWrite(lock unsafe.Pointer)
- func IORecursiveConditionLockAlloc() unsafe.Pointer
- func IORecursiveConditionLockFree(lock unsafe.Pointer)
- func IORecursiveConditionLockHaveLock(lock unsafe.Pointer) bool
- func IORecursiveConditionLockLock(lock unsafe.Pointer)
- func IORecursiveConditionLockTryLock(lock unsafe.Pointer) bool
- func IORecursiveConditionLockUnlock(lock unsafe.Pointer)
- func IORecursiveLockAlloc() unsafe.Pointer
- func IORecursiveLockFree(lock unsafe.Pointer)
- func IORecursiveLockHaveLock(lock unsafe.Pointer) bool
- func IORecursiveLockLock(lock unsafe.Pointer)
- func IORecursiveLockTryLock(lock unsafe.Pointer) bool
- func IORecursiveLockUnlock(lock unsafe.Pointer)
- func IOReportLegend_Class() uintptr
- func IOReporter_Class() uintptr
- func IOServiceNotificationDispatchSource_Class() uintptr
- func IOServiceStateNotificationDispatchSource_Class() uintptr
- func IOService_Class() uintptr
- func IOSimpleReporter_Class() uintptr
- func IOSleep(ms uint64)
- func IOStateReporter_Class() uintptr
- func IOSysCtlByName(name string, oldp unsafe.Pointer, newp unsafe.Pointer, newlen int) (result int, oldlenp int)
- func IOThreadLocalStorageGet(key uint64) unsafe.Pointer
- func IOThreadLocalStorageKeyCreate() (result int, key uint64)
- func IOThreadLocalStorageKeyDelete(key uint64) int
- func IOThreadLocalStorageSet(key uint64, value unsafe.Pointer) int
- func IOTimerDispatchSource_Class() uintptr
- func IOUserClient_Class() uintptr
- func IOVMPageSize() uint64
- func Insque(entry unsafe.Pointer, pred unsafe.Pointer)
- func KOSBooleanFalse() uintptr
- func KOSBooleanTrue() uintptr
- func Movqueue(old unsafe.Pointer, new_ unsafe.Pointer)
- func OSAction_Class() uintptr
- func OSAction_IOUserClient_KernelCompletion_Class() uintptr
- func OSArrayAppendValue(value OSObjectPtr) (ok bool, object int32)
- func OSArrayApply(applier func(unsafe.Pointer) bool) (ok bool, object int32)
- func OSArrayCreate() unsafe.Pointer
- func OSArrayGetCount() (result uint32, object int32)
- func OSArrayGetStringValue(index int) (result string, object int32)
- func OSArrayGetUInt64Value(index int) (result uint64, object int32)
- func OSArrayReplaceValue(index int, value OSObjectPtr) (ok bool, object int32)
- func OSArraySetStringValue(index int, value string) (object int32)
- func OSArraySetUInt64Value(index int, value uint64) (object int32)
- func OSArraySetValue(index int, value OSObjectPtr) (ok bool, object int32)
- func OSArray_Class() uintptr
- func OSBoolean_Class() uintptr
- func OSBundle_Class() uintptr
- func OSCollectionTypeID(object OSObjectPtr) uint64
- func OSCollectionTypeName(t uint64) string
- func OSCollection_Class() uintptr
- func OSCollectionsInitialize()
- func OSContainer_Class() uintptr
- func OSCreateSerializationFromBytes(data unsafe.Pointer, length int, freeBuffer func(unsafe.Pointer, int)) unsafe.Pointer
- func OSCreateSerializationFromObject(object OSObjectPtr) unsafe.Pointer
- func OSDataAppendBytes(data2 unsafe.Pointer, length int) (ok bool, data int32)
- func OSDataCreate(data unsafe.Pointer, length int) unsafe.Pointer
- func OSDataGetBytes(buffer unsafe.Pointer, offset int, length int) (result int, object int32)
- func OSDataGetBytesPtr(offset int, length int) (result unsafe.Pointer, object int32)
- func OSDataGetLength() (result int, object int32)
- func OSData_Class() uintptr
- func OSDictionaryApply(applier func(string, unsafe.Pointer) bool) (ok bool, object int32)
- func OSDictionaryCreate() unsafe.Pointer
- func OSDictionaryGetCount() (result uint32, object int32)
- func OSDictionaryGetStringValue(key string) (result string, object int32)
- func OSDictionaryGetUInt64Value(key string) (result uint64, object int32)
- func OSDictionarySetStringValue(key string, value string) (object int32)
- func OSDictionarySetUInt64Value(key string, value uint64) (object int32)
- func OSDictionarySetValue(key string, value OSObjectPtr) (ok bool, object int32)
- func OSDictionary_Class() uintptr
- func OSMappedFile_Class() uintptr
- func OSNumberCreateWithUInt64Value(value uint64) unsafe.Pointer
- func OSNumberGetUInt64Value() (result uint64, object int32)
- func OSNumber_Class() uintptr
- func OSObjectAllocate(pObject obj.Object) (result int, meta int32)
- func OSObjectLog(object OSObjectPtr)
- func OSObjectRelease(container OSObjectPtr)
- func OSObjectRetain(container OSObjectPtr)
- func OSObject_Class() uintptr
- func OSOrderedSet_Class() uintptr
- func OSSerializationGetBytes() (result unsafe.Pointer, serial int32, length int)
- func OSSerialization_Class() uintptr
- func OSSet_Class() uintptr
- func OSStringCreate(cstring unsafe.Pointer, length int) unsafe.Pointer
- func OSStringGetLength() (result int, str int32)
- func OSStringGetStringPtr() (result string, object int32)
- func OSString_Class() uintptr
- func OSSynchronizeIO()
- func QUEUEELTVALIDATE(elt unsafe.Pointer)
- func QUEUEELTVALIDATENEXT(elt unsafe.Pointer) unsafe.Pointer
- func QUEUEELTVALIDATEPREV(elt unsafe.Pointer) unsafe.Pointer
- func ReQueueHead(que unsafe.Pointer, elt unsafe.Pointer)
- func ReQueueTail(que unsafe.Pointer, elt unsafe.Pointer)
- func ReadRandom(buffer unsafe.Pointer, numBytes int)
- func Remque(elt unsafe.Pointer)
- func Remqueue(elt unsafe.Pointer)
- type Clockid
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type FilesecProperty
- type IOAddressSegment
- type IOBufferMemoryDescriptor_IVars
- type IOBufferMemoryDescriptor_LocalIVars
- type IOCallOnceFlag
- type IOCommandPool_IVars
- type IOCommandPool_LocalIVars
- type IOCommand_IVars
- type IOCommand_LocalIVars
- type IODMACommandSpecification
- type IODMACommand_IVars
- type IODMACommand_LocalIVars
- type IODataQueueDispatchSource_IVars
- type IODataQueueDispatchSource_LocalIVars
- type IODispatchQueue_IVars
- type IODispatchQueue_LocalIVars
- type IODispatchSource_IVars
- type IODispatchSource_LocalIVars
- type IOHistogramReportValues
- type IOHistogramReporter_IVars
- type IOHistogramReporter_LocalIVars
- type IOHistogramSegmentConfig
- type IOInterruptDispatchSourcePayload
- type IOInterruptDispatchSource_IVars
- type IOInterruptDispatchSource_LocalIVars
- type IOLock
- type IOLockAssertState
- type IOMDPrivateState
- type IOMemoryDescriptor_IVars
- type IOMemoryDescriptor_LocalIVars
- type IOMemoryMapPrivateState
- type IOMemoryMap_IVars
- type IOMemoryMap_LocalIVars
- type IONamedValue
- type IONormDistReportValues
- type IOPhysicalRange
- type IORPC
- type IORPCMessage
- type IORPCMessageErrorReturn
- type IORPCMessageErrorReturnContent
- type IORPCMessageMach
- type IORWLock
- type IORWLockAssertState
- type IORecursiveConditionLock
- type IORecursiveLock
- type IOReportChannel
- type IOReportChannelList
- type IOReportChannelType
- type IOReportElement
- type IOReportElementValues
- type IOReportInterest
- type IOReportInterestList
- type IOReportLegend_IVars
- type IOReportLegend_LocalIVars
- type IOReporter_IVars
- type IOReporter_LocalIVars
- type IOServiceNotificationDispatchSource_IVars
- type IOServiceNotificationDispatchSource_LocalIVars
- type IOServiceStateNotificationDispatchSource_IVars
- type IOServiceStateNotificationDispatchSource_LocalIVars
- type IOService_IVars
- type IOService_LocalIVars
- type IOSimpleArrayReportValues
- type IOSimpleReportValues
- type IOSimpleReporter_IVars
- type IOSimpleReporter_LocalIVars
- type IOStateReportValues
- type IOStateReporter_IVars
- type IOStateReporter_LocalIVars
- type IOTimerDispatchSource_IVars
- type IOTimerDispatchSource_LocalIVars
- type IOUserClientMethodArguments
- type IOUserClientMethodDispatch
- type IOUserClient_IVars
- type IOUserClient_LocalIVars
- type IOVirtualRange
- type Idtype
- type IostatereporterValueselector
- type IpcInfoObjectType
- type LaunchDataType
- type MpoFlags
- type OSActionWaitToken
- type OSAction_IOUserClient_KernelCompletion_IVars
- type OSAction_IOUserClient_KernelCompletion_LocalIVars
- type OSAction_IVars
- type OSAction_LocalIVars
- type OSArray_IVars
- type OSArray_LocalIVars
- type OSBoolean_IVars
- type OSBoolean_LocalIVars
- type OSBundle_IVars
- type OSBundle_LocalIVars
- type OSClassDescription
- type OSClassLoadInformation
- type OSClockid
- type OSCollection_IVars
- type OSCollection_LocalIVars
- type OSContainer_IVars
- type OSContainer_LocalIVars
- type OSData_IVars
- type OSData_LocalIVars
- type OSDictionary_IVars
- type OSDictionary_LocalIVars
- type OSLogType
- type OSMappedFile_IVars
- type OSMappedFile_LocalIVars
- type OSMetaClassPrivate
- type OSNumber_IVars
- type OSNumber_LocalIVars
- type OSObject
- type OSObjectPtr
- type OSObject_IVars
- type OSObject_LocalIVars
- type OSOrderedSet_IVars
- type OSOrderedSet_LocalIVars
- type OSSerialization_IVars
- type OSSerialization_LocalIVars
- type OSSet_IVars
- type OSSet_LocalIVars
- type OSStringStatic
- type OSString_IVars
- type OSString_LocalIVars
- type QosClass
- type QueueChainT
- type QueueEntry
- type QueueEntryT
- type QueueHeadT
- type QueueT
- type VMRangeFlags
- type VMRangeFlavor
- type VMRangeTag
- type VirtualMemoryGuardExceptionCode
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
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 DEQUEUEELTCLEANUP ¶
DEQUEUEELTCLEANUP calls the DriverKit framework function __DEQUEUE_ELT_CLEANUP.
func DequeueHead ¶
DequeueHead calls the DriverKit framework function dequeue_head.
func DequeueTail ¶
DequeueTail calls the DriverKit framework function dequeue_tail.
func EnqueueHead ¶
EnqueueHead calls the DriverKit framework function enqueue_head.
func EnqueueTail ¶
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 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 ¶
IOFixedDivide calls the DriverKit framework function IOFixedDivide.
func IOFixedMultiply ¶
IOFixedMultiply calls the DriverKit framework function IOFixedMultiply.
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 ¶
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 ¶
IOLockFree calls the DriverKit framework function IOLockFree.
func IOLockLock ¶
IOLockLock calls the DriverKit framework function IOLockLock.
func IOLockTryLock ¶
IOLockTryLock calls the DriverKit framework function IOLockTryLock.
func IOLockUnlock ¶
IOLockUnlock calls the DriverKit framework function IOLockUnlock.
func IOLogBuffer ¶
IOLogBuffer calls the DriverKit framework function IOLogBuffer.
func IOMallocTyped ¶
IOMallocTyped calls the DriverKit framework function IOMallocTyped.
func IOMallocZero ¶
IOMallocZero calls the DriverKit framework function IOMallocZero.
func IOMallocZeroTyped ¶
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 ¶
IOParseBootArgNumber calls the DriverKit framework function IOParseBootArgNumber.
func IOParseBootArgString ¶
IOParseBootArgString calls the DriverKit framework function IOParseBootArgString.
func IORPCMessageFromMach ¶
IORPCMessageFromMach calls the DriverKit framework function IORPCMessageFromMach.
func IORWLockAlloc ¶
IORWLockAlloc calls the DriverKit framework function IORWLockAlloc.
func IORWLockFree ¶
IORWLockFree calls the DriverKit framework function IORWLockFree.
func IORWLockRead ¶
IORWLockRead calls the DriverKit framework function IORWLockRead.
func IORWLockUnlock ¶
IORWLockUnlock calls the DriverKit framework function IORWLockUnlock.
func IORWLockWrite ¶
IORWLockWrite calls the DriverKit framework function IORWLockWrite.
func IORecursiveConditionLockAlloc ¶
IORecursiveConditionLockAlloc calls the DriverKit framework function IORecursiveConditionLockAlloc.
func IORecursiveConditionLockFree ¶
IORecursiveConditionLockFree calls the DriverKit framework function IORecursiveConditionLockFree.
func IORecursiveConditionLockHaveLock ¶
IORecursiveConditionLockHaveLock calls the DriverKit framework function IORecursiveConditionLockHaveLock.
func IORecursiveConditionLockLock ¶
IORecursiveConditionLockLock calls the DriverKit framework function IORecursiveConditionLockLock.
func IORecursiveConditionLockTryLock ¶
IORecursiveConditionLockTryLock calls the DriverKit framework function IORecursiveConditionLockTryLock.
func IORecursiveConditionLockUnlock ¶
IORecursiveConditionLockUnlock calls the DriverKit framework function IORecursiveConditionLockUnlock.
func IORecursiveLockAlloc ¶
IORecursiveLockAlloc calls the DriverKit framework function IORecursiveLockAlloc.
func IORecursiveLockFree ¶
IORecursiveLockFree calls the DriverKit framework function IORecursiveLockFree.
func IORecursiveLockHaveLock ¶
IORecursiveLockHaveLock calls the DriverKit framework function IORecursiveLockHaveLock.
func IORecursiveLockLock ¶
IORecursiveLockLock calls the DriverKit framework function IORecursiveLockLock.
func IORecursiveLockTryLock ¶
IORecursiveLockTryLock calls the DriverKit framework function IORecursiveLockTryLock.
func IORecursiveLockUnlock ¶
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 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 ¶
IOThreadLocalStorageGet calls the DriverKit framework function IOThreadLocalStorageGet.
func IOThreadLocalStorageKeyCreate ¶
IOThreadLocalStorageKeyCreate calls the DriverKit framework function IOThreadLocalStorageKeyCreate.
func IOThreadLocalStorageKeyDelete ¶
IOThreadLocalStorageKeyDelete calls the DriverKit framework function IOThreadLocalStorageKeyDelete.
func IOThreadLocalStorageSet ¶
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 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 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 ¶
OSArrayApply calls the DriverKit framework function OSArrayApply.
func OSArrayCreate ¶
OSArrayCreate calls the DriverKit framework function OSArrayCreate.
func OSArrayGetCount ¶
OSArrayGetCount calls the DriverKit framework function OSArrayGetCount.
func OSArrayGetStringValue ¶
OSArrayGetStringValue calls the DriverKit framework function OSArrayGetStringValue.
func OSArrayGetUInt64Value ¶
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 ¶
OSArraySetStringValue calls the DriverKit framework function OSArraySetStringValue.
func OSArraySetUInt64Value ¶
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 ¶
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 ¶
OSDataAppendBytes calls the DriverKit framework function OSDataAppendBytes.
func OSDataCreate ¶
OSDataCreate calls the DriverKit framework function OSDataCreate.
func OSDataGetBytes ¶
OSDataGetBytes calls the DriverKit framework function OSDataGetBytes.
func OSDataGetBytesPtr ¶
OSDataGetBytesPtr calls the DriverKit framework function OSDataGetBytesPtr.
func OSDataGetLength ¶
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 ¶
OSDictionaryApply calls the DriverKit framework function OSDictionaryApply.
func OSDictionaryCreate ¶
OSDictionaryCreate calls the DriverKit framework function OSDictionaryCreate.
func OSDictionaryGetCount ¶
OSDictionaryGetCount calls the DriverKit framework function OSDictionaryGetCount.
func OSDictionaryGetStringValue ¶
OSDictionaryGetStringValue calls the DriverKit framework function OSDictionaryGetStringValue.
func OSDictionaryGetUInt64Value ¶
OSDictionaryGetUInt64Value calls the DriverKit framework function OSDictionaryGetUInt64Value.
func OSDictionarySetStringValue ¶
OSDictionarySetStringValue calls the DriverKit framework function OSDictionarySetStringValue.
func OSDictionarySetUInt64Value ¶
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 ¶
OSNumberCreateWithUInt64Value calls the DriverKit framework function OSNumberCreateWithUInt64Value.
func OSNumberGetUInt64Value ¶
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 ¶
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 ¶
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 ¶
OSStringCreate calls the DriverKit framework function OSStringCreate.
func OSStringGetLength ¶
OSStringGetLength calls the DriverKit framework function OSStringGetLength.
func OSStringGetStringPtr ¶
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 ¶
QUEUEELTVALIDATE calls the DriverKit framework function __QUEUE_ELT_VALIDATE.
func QUEUEELTVALIDATENEXT ¶
QUEUEELTVALIDATENEXT calls the DriverKit framework function __QUEUE_ELT_VALIDATE_NEXT.
func QUEUEELTVALIDATEPREV ¶
QUEUEELTVALIDATEPREV calls the DriverKit framework function __QUEUE_ELT_VALIDATE_PREV.
func ReQueueHead ¶
ReQueueHead calls the DriverKit framework function re_queue_head.
func ReQueueTail ¶
ReQueueTail calls the DriverKit framework function re_queue_tail.
func ReadRandom ¶
ReadRandom calls the DriverKit framework function read_random.
Types ¶
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
func (e DispatchAutoreleaseFrequency) String() string
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 ¶
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 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 IOHistogramReporter_IVars ¶
type IOHistogramReporter_IVars struct{}
type IOHistogramReporter_LocalIVars ¶
type IOHistogramReporter_LocalIVars struct{}
type IOInterruptDispatchSourcePayload ¶
A private structure for an interrupt dispatch source.
type IOInterruptDispatchSource_IVars ¶
type IOInterruptDispatchSource_IVars struct{}
type IOInterruptDispatchSource_LocalIVars ¶
type IOInterruptDispatchSource_LocalIVars 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 IOMemoryDescriptor_IVars ¶
type IOMemoryDescriptor_IVars struct{}
type IOMemoryDescriptor_LocalIVars ¶
type IOMemoryDescriptor_LocalIVars struct{}
type IOMemoryMapPrivateState ¶
type IOMemoryMap_IVars ¶
type IOMemoryMap_IVars struct{}
type IOMemoryMap_LocalIVars ¶
type IOMemoryMap_LocalIVars struct{}
type IONamedValue ¶
type IONormDistReportValues ¶
type IOPhysicalRange ¶
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 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 IOReportChannelType ¶
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 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 IOSimpleReporter_IVars ¶
type IOSimpleReporter_IVars struct{}
type IOSimpleReporter_LocalIVars ¶
type IOSimpleReporter_LocalIVars struct{}
type IOStateReportValues ¶
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 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
func (e IostatereporterValueselector) String() string
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 )
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 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 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 OSObjectPtr ¶ added in v0.18.0
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 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 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
func (e VirtualMemoryGuardExceptionCode) String() string
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.