iokit

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package iokit provides Go bindings for the iokit framework.

Access hardware devices and drivers from your apps and services.

The IOKit framework implements nonkernel access to IOKit objects such drivers and nubs through the device-interface mechanism.

Serial Ports

  • Communicating with a Modem on a Serial Port: Find and connect to a modem attached to a serial port using IOKit.

Code generated from Apple documentation. DO NOT EDIT.

Index

Constants

View Source
const KIOCFSerializeToBinary uint = 0
View Source
const KIOConnectMethodVarOutputSize int = -3
View Source
const KIODefaultMemoryType uint = 0
View Source
const KIOServiceInteractionAllowed uint = 1

Variables

This section is empty.

Functions

func CDConvertMSFToClippedLBA

func CDConvertMSFToClippedLBA(arg0 CDMSF) uint32

CDConvertMSFToClippedLBA.

See: https://developer.apple.com/documentation/iokit/1584220-cdconvertmsftoclippedlba

func IOAccelFindAccelerator

func IOAccelFindAccelerator(arg0 uintptr, arg1 uintptr, arg2 uint32) int

IOAccelFindAccelerator.

See: https://developer.apple.com/documentation/iokit/1502405-ioaccelfindaccelerator

func IOAllowPowerChange

func IOAllowPowerChange(arg0 uintptr, arg1 int) int

IOAllowPowerChange the caller acknowledges notification of a power state change on a device it has registered for notifications for via IORegisterForSystemPower or IORegisterApp.

See: https://developer.apple.com/documentation/iokit/1557064-ioallowpowerchange

func IOBSDNameMatching

func IOBSDNameMatching(mainPort uint32, options uint32, bsdName string) corefoundation.CFMutableDictionary

IOBSDNameMatching create a matching dictionary that specifies an IOService match based on BSD device name.

See: https://developer.apple.com/documentation/iokit/1514486-iobsdnamematching

func IOCancelPowerChange

func IOCancelPowerChange(arg0 uintptr, arg1 int) int

IOCancelPowerChange the caller denies an idle system sleep power state change.

See: https://developer.apple.com/documentation/iokit/1557115-iocancelpowerchange

func IOCatalogueGetData

func IOCatalogueGetData(mainPort uint32, flag uint32, buffer string, size *uint32) int32

IOCatalogueGetData.

See: https://developer.apple.com/documentation/iokit/1514233-iocataloguegetdata

func IOCatalogueModuleLoaded

func IOCatalogueModuleLoaded(mainPort uint32, name string) int32

IOCatalogueModuleLoaded.

See: https://developer.apple.com/documentation/iokit/1514886-iocataloguemoduleloaded

func IOCatalogueReset

func IOCatalogueReset(mainPort uint32, flag uint32) int32

IOCatalogueReset.

See: https://developer.apple.com/documentation/iokit/1514702-iocataloguereset

func IOCatalogueSendData

func IOCatalogueSendData(mainPort uint32, flag uint32, buffer string, size uint32) int32

IOCatalogueSendData.

See: https://developer.apple.com/documentation/iokit/1514405-iocataloguesenddata

func IOCatalogueTerminate

func IOCatalogueTerminate(mainPort uint32, flag uint32, description string) int32

IOCatalogueTerminate.

See: https://developer.apple.com/documentation/iokit/1514665-iocatalogueterminate

func IOConnectAddClient

func IOConnectAddClient(connect uintptr, client uintptr) int32

IOConnectAddClient inform a connection of a second connection.

See: https://developer.apple.com/documentation/iokit/1514609-ioconnectaddclient

func IOConnectAddRef

func IOConnectAddRef(connect uintptr) int32

IOConnectAddRef adds a reference to the connect handle.

See: https://developer.apple.com/documentation/iokit/1514739-ioconnectaddref

func IOConnectCallAsyncMethod

func IOConnectCallAsyncMethod(connection uint32, selector uint32, wake_port uint32, reference *uint64, referenceCnt uint32, input *uint64, inputCnt uint32, inputStruct unsafe.Pointer, inputStructCnt unsafe.Pointer, output *uint64, outputCnt *uint32, outputStruct unsafe.Pointer, outputStructCnt unsafe.Pointer) int32

IOConnectCallAsyncMethod.

See: https://developer.apple.com/documentation/iokit/1514418-ioconnectcallasyncmethod

func IOConnectCallAsyncScalarMethod

func IOConnectCallAsyncScalarMethod(connection uint32, selector uint32, wake_port uint32, reference *uint64, referenceCnt uint32, input *uint64, inputCnt uint32, output *uint64, outputCnt *uint32) int32

IOConnectCallAsyncScalarMethod.

See: https://developer.apple.com/documentation/iokit/1514884-ioconnectcallasyncscalarmethod

func IOConnectCallAsyncStructMethod

func IOConnectCallAsyncStructMethod(connection uint32, selector uint32, wake_port uint32, reference *uint64, referenceCnt uint32, inputStruct unsafe.Pointer, inputStructCnt unsafe.Pointer, outputStruct unsafe.Pointer, outputStructCnt unsafe.Pointer) int32

IOConnectCallAsyncStructMethod.

See: https://developer.apple.com/documentation/iokit/1514403-ioconnectcallasyncstructmethod

func IOConnectCallMethod

func IOConnectCallMethod(connection uint32, selector uint32, input *uint64, inputCnt uint32, inputStruct unsafe.Pointer, inputStructCnt unsafe.Pointer, output *uint64, outputCnt *uint32, outputStruct unsafe.Pointer, outputStructCnt unsafe.Pointer) int32

IOConnectCallMethod.

See: https://developer.apple.com/documentation/iokit/1514240-ioconnectcallmethod

func IOConnectCallScalarMethod

func IOConnectCallScalarMethod(connection uint32, selector uint32, input *uint64, inputCnt uint32, output *uint64, outputCnt *uint32) int32

IOConnectCallScalarMethod.

See: https://developer.apple.com/documentation/iokit/1514793-ioconnectcallscalarmethod

func IOConnectCallStructMethod

func IOConnectCallStructMethod(connection uint32, selector uint32, inputStruct unsafe.Pointer, inputStructCnt unsafe.Pointer, outputStruct unsafe.Pointer, outputStructCnt unsafe.Pointer) int32

IOConnectCallStructMethod.

See: https://developer.apple.com/documentation/iokit/1514274-ioconnectcallstructmethod

func IOConnectGetService

func IOConnectGetService(connect uintptr, service *uintptr) int32

IOConnectGetService returns the IOService a connect handle was opened on.

See: https://developer.apple.com/documentation/iokit/1514438-ioconnectgetservice

func IOConnectMapMemory

func IOConnectMapMemory(connect uintptr, memoryType uint32, intoTask kernel.Task_port_t, atAddress *kernel.Mach_vm_address_t, ofSize *kernel.Mach_vm_size_t, options uint32) int32

IOConnectMapMemory map hardware or shared memory into the caller's task.

See: https://developer.apple.com/documentation/iokit/1514377-ioconnectmapmemory

func IOConnectMapMemory64

func IOConnectMapMemory64(connect uintptr, memoryType uint32, intoTask kernel.Task_port_t, atAddress *kernel.Mach_vm_address_t, ofSize *kernel.Mach_vm_size_t, options uint32) int32

IOConnectMapMemory64 map hardware or shared memory into the caller's task.

See: https://developer.apple.com/documentation/iokit/1514862-ioconnectmapmemory64

func IOConnectRelease

func IOConnectRelease(connect uintptr) int32

IOConnectRelease remove a reference to the connect handle.

See: https://developer.apple.com/documentation/iokit/1514511-ioconnectrelease

func IOConnectSetCFProperties

func IOConnectSetCFProperties(connect uintptr, properties corefoundation.CFTypeRef) int32

IOConnectSetCFProperties set CF container based properties on a connection.

See: https://developer.apple.com/documentation/iokit/1514713-ioconnectsetcfproperties

func IOConnectSetCFProperty

func IOConnectSetCFProperty(connect uintptr, propertyName corefoundation.CFStringRef, property corefoundation.CFTypeRef) int32

IOConnectSetCFProperty set a CF container based property on a connection.

See: https://developer.apple.com/documentation/iokit/1514796-ioconnectsetcfproperty

func IOConnectSetNotificationPort

func IOConnectSetNotificationPort(connect uintptr, type_ uint32, port uint32, reference unsafe.Pointer) int32

IOConnectSetNotificationPort set a port to receive family specific notifications.

See: https://developer.apple.com/documentation/iokit/1514541-ioconnectsetnotificationport

func IOConnectUnmapMemory

func IOConnectUnmapMemory(connect uintptr, memoryType uint32, fromTask kernel.Task_port_t, atAddress kernel.Mach_vm_address_t) int32

IOConnectUnmapMemory remove a mapping made with IOConnectMapMemory.

See: https://developer.apple.com/documentation/iokit/1514527-ioconnectunmapmemory

func IOConnectUnmapMemory64

func IOConnectUnmapMemory64(connect uintptr, memoryType uint32, fromTask kernel.Task_port_t, atAddress kernel.Mach_vm_address_t) int32

IOConnectUnmapMemory64 remove a mapping made with IOConnectMapMemory64.

See: https://developer.apple.com/documentation/iokit/1514760-ioconnectunmapmemory64

func IOCopySystemLoadAdvisoryDetailed

func IOCopySystemLoadAdvisoryDetailed() corefoundation.CFDictionaryRef

IOCopySystemLoadAdvisoryDetailed indicates how user activity, battery level, and thermal level each contribute to the overall "SystemLoadAdvisory" level.

See: https://developer.apple.com/documentation/iokit/1557099-iocopysystemloadadvisorydetailed

func IOCreatePlugInInterfaceForService

func IOCreatePlugInInterfaceForService(service uintptr, pluginType corefoundation.CFUUID, interfaceType corefoundation.CFUUID, theInterface *IOCFPlugInInterface, theScore *uintptr) int32

IOCreatePlugInInterfaceForService.

See: https://developer.apple.com/documentation/iokit/1412429-iocreateplugininterfaceforservic

func IOCreateReceivePort

func IOCreateReceivePort(msgType uint32, recvPort *uint32) int32

IOCreateReceivePort creates and returns a mach port suitable for receiving IOKit messages of the specified type.

See: https://developer.apple.com/documentation/iokit/1514698-iocreatereceiveport

func IODataQueueAllocateNotificationPort

func IODataQueueAllocateNotificationPort() uint32

IODataQueueAllocateNotificationPort allocates and returns a new mach port able to receive data available notifications from an IODataQueue.

See: https://developer.apple.com/documentation/iokit/1514495-iodataqueueallocatenotificationp

func IODataQueueDataAvailable

func IODataQueueDataAvailable(dataQueue *IODataQueueMemory) bool

IODataQueueDataAvailable used to determine if more data is avilable on the queue.

See: https://developer.apple.com/documentation/iokit/1514386-iodataqueuedataavailable

func IODataQueueDequeue

func IODataQueueDequeue(dataQueue *IODataQueueMemory, data unsafe.Pointer, dataSize *uint32) int

IODataQueueDequeue dequeues the next available entry on the queue and copies it into the given data pointer.

See: https://developer.apple.com/documentation/iokit/1514287-iodataqueuedequeue

func IODataQueueEnqueue

func IODataQueueEnqueue(dataQueue *IODataQueueMemory, data unsafe.Pointer, dataSize uint32) int

IODataQueueEnqueue enqueues a new entry on the queue.

See: https://developer.apple.com/documentation/iokit/1514482-iodataqueueenqueue

func IODataQueueSetNotificationPort

func IODataQueueSetNotificationPort(dataQueue *IODataQueueMemory, notifyPort uint32) int

IODataQueueSetNotificationPort creates a simple mach message targeting the mach port specified in port.

See: https://developer.apple.com/documentation/iokit/1514301-iodataqueuesetnotificationport

func IODataQueueWaitForAvailableData

func IODataQueueWaitForAvailableData(dataQueue *IODataQueueMemory, notificationPort uint32) int

IODataQueueWaitForAvailableData wait for an incoming dataAvailable message on the given notifyPort.

See: https://developer.apple.com/documentation/iokit/1514696-iodataqueuewaitforavailabledata

func IODeregisterApp

func IODeregisterApp(arg0 uintptr) int

IODeregisterApp disconnects the caller from an IOService after receiving power state change notifications from the IOService.

See: https://developer.apple.com/documentation/iokit/1557129-ioderegisterapp

func IODeregisterForSystemPower

func IODeregisterForSystemPower(arg0 uintptr) int

IODeregisterForSystemPower disconnects the caller from the Root Power Domain IOService after receiving system power state change notifications.

See: https://developer.apple.com/documentation/iokit/1557132-ioderegisterforsystempower

func IODispatchCalloutFromMessage

func IODispatchCalloutFromMessage(unused unsafe.Pointer, msg unsafe.Pointer, reference unsafe.Pointer)

IODispatchCalloutFromMessage dispatches callback notifications from a mach message.

See: https://developer.apple.com/documentation/iokit/1514775-iodispatchcalloutfrommessage

func IODisplayCommitParameters

func IODisplayCommitParameters(arg0 uintptr, arg1 uint32) int

IODisplayCommitParameters.

See: https://developer.apple.com/documentation/iokit/1574906-iodisplaycommitparameters

func IODisplayCreateInfoDictionary

func IODisplayCreateInfoDictionary(arg0 uintptr, arg1 uint32) corefoundation.CFDictionaryRef

IODisplayCreateInfoDictionary create a CFDictionary with information about display hardware.

See: https://developer.apple.com/documentation/iokit/1574917-iodisplaycreateinfodictionary

func IODisplayForFramebuffer

func IODisplayForFramebuffer(arg0 uintptr, arg1 uint32) uintptr

IODisplayForFramebuffer.

See: https://developer.apple.com/documentation/iokit/1574899-iodisplayforframebuffer

func IODisplayGetIntegerRangeParameter

func IODisplayGetIntegerRangeParameter(arg0 uintptr, arg1 uint32, arg2 corefoundation.CFStringRef, arg3 int32, arg4 int32, arg5 int32) int

IODisplayGetIntegerRangeParameter.

See: https://developer.apple.com/documentation/iokit/1574908-iodisplaygetintegerrangeparamete

func IODisplayMatchDictionaries

func IODisplayMatchDictionaries(arg0 corefoundation.CFDictionaryRef, arg1 corefoundation.CFDictionaryRef, arg2 uint32) int32

IODisplayMatchDictionaries match two display information dictionaries to see if they are for the same display.

See: https://developer.apple.com/documentation/iokit/1574879-iodisplaymatchdictionaries

func IODisplaySetIntegerParameter

func IODisplaySetIntegerParameter(arg0 uintptr, arg1 uint32, arg2 corefoundation.CFStringRef, arg3 int32) int

IODisplaySetIntegerParameter.

See: https://developer.apple.com/documentation/iokit/1574915-iodisplaysetintegerparameter

func IOFBCopyI2CInterfaceForBus

func IOFBCopyI2CInterfaceForBus(arg0 uintptr, arg1 uint32, arg2 uintptr) int

IOFBCopyI2CInterfaceForBus returns an instance of an I2C bus interface, associated with an IOFramebuffer instance / bus index pair.

See: https://developer.apple.com/documentation/iokit/1410345-iofbcopyi2cinterfaceforbus

func IOFBGetI2CInterfaceCount

func IOFBGetI2CInterfaceCount(arg0 uintptr, arg1 uint) int

IOFBGetI2CInterfaceCount returns a count of I2C interfaces available associated with an IOFramebuffer instance.

See: https://developer.apple.com/documentation/iokit/1410333-iofbgeti2cinterfacecount

func IOHIDCreateSharedMemory

func IOHIDCreateSharedMemory(arg0 uintptr, arg1 uint) int32

IOHIDCreateSharedMemory.

See: https://developer.apple.com/documentation/iokit/1555393-iohidcreatesharedmemory

func IOHIDDeviceClose

func IOHIDDeviceClose(arg0 IOHIDDeviceRef, arg1 uint32) int

IOHIDDeviceClose closes communication with a HID device.

See: https://developer.apple.com/documentation/iokit/1588668-iohiddeviceclose

func IOHIDDeviceConformsTo

func IOHIDDeviceConformsTo(arg0 IOHIDDeviceRef, arg1 uint32, arg2 uint32) bool

IOHIDDeviceConformsTo convenience function that scans the Application Collection elements to see if it conforms to the provided usagePage and usage.

See: https://developer.apple.com/documentation/iokit/1588665-iohiddeviceconformsto

func IOHIDDeviceCopyMatchingElements

func IOHIDDeviceCopyMatchingElements(arg0 IOHIDDeviceRef, arg1 corefoundation.CFDictionaryRef, arg2 uint32) corefoundation.CFArrayRef

IOHIDDeviceCopyMatchingElements obtains HID elements that match the criteria contained in the matching dictionary.

See: https://developer.apple.com/documentation/iokit/1588671-iohiddevicecopymatchingelements

func IOHIDDeviceCopyValueMultiple

func IOHIDDeviceCopyValueMultiple(arg0 IOHIDDeviceRef, arg1 corefoundation.CFArrayRef, arg2 corefoundation.CFDictionaryRef) int

IOHIDDeviceCopyValueMultiple copies a values for multiple elements.

See: https://developer.apple.com/documentation/iokit/1588652-iohiddevicecopyvaluemultiple

func IOHIDDeviceCopyValueMultipleWithCallback

func IOHIDDeviceCopyValueMultipleWithCallback(arg0 IOHIDDeviceRef, arg1 corefoundation.CFArrayRef, arg2 corefoundation.CFDictionaryRef, arg3 float64, arg4 unsafe.Pointer) int

IOHIDDeviceCopyValueMultipleWithCallback copies a values for multiple elements and returns status via a completion callback.

See: https://developer.apple.com/documentation/iokit/1588655-iohiddevicecopyvaluemultiplewith

func IOHIDDeviceGetProperty

func IOHIDDeviceGetProperty(arg0 IOHIDDeviceRef, arg1 corefoundation.CFStringRef) corefoundation.CFTypeRef

IOHIDDeviceGetProperty obtains a property from an IOHIDDevice.

See: https://developer.apple.com/documentation/iokit/1588648-iohiddevicegetproperty

func IOHIDDeviceGetReport

func IOHIDDeviceGetReport(arg0 IOHIDDeviceRef, arg1 IOHIDReportType, arg2 int, arg3 uint8, arg4 int) int

IOHIDDeviceGetReport obtains a report from the device.

See: https://developer.apple.com/documentation/iokit/1588659-iohiddevicegetreport

func IOHIDDeviceGetReportWithCallback

func IOHIDDeviceGetReportWithCallback(arg0 IOHIDDeviceRef, arg1 IOHIDReportType, arg2 int, arg3 uint8, arg4 int, arg5 float64, arg6 unsafe.Pointer) int

IOHIDDeviceGetReportWithCallback obtains a report from the device.

See: https://developer.apple.com/documentation/iokit/1588662-iohiddevicegetreportwithcallback

func IOHIDDeviceGetService

func IOHIDDeviceGetService(arg0 IOHIDDeviceRef) uintptr

IOHIDDeviceGetService returns the io_service_t for an IOHIDDevice, if it has one.

See: https://developer.apple.com/documentation/iokit/1588646-iohiddevicegetservice

func IOHIDDeviceGetTypeID

func IOHIDDeviceGetTypeID() uint

IOHIDDeviceGetTypeID returns the type identifier of all IOHIDDevice instances.

See: https://developer.apple.com/documentation/iokit/1588664-iohiddevicegettypeid

func IOHIDDeviceGetValue

func IOHIDDeviceGetValue(arg0 IOHIDDeviceRef, arg1 IOHIDElementRef, arg2 IOHIDValueRef) int

IOHIDDeviceGetValue gets a value for an element.

See: https://developer.apple.com/documentation/iokit/1588657-iohiddevicegetvalue

func IOHIDDeviceGetValueWithCallback

func IOHIDDeviceGetValueWithCallback(arg0 IOHIDDeviceRef, arg1 IOHIDElementRef, arg2 IOHIDValueRef, arg3 float64, arg4 unsafe.Pointer) int

IOHIDDeviceGetValueWithCallback gets a value for an element and returns status via a completion callback.

See: https://developer.apple.com/documentation/iokit/1588647-iohiddevicegetvaluewithcallback

func IOHIDDeviceOpen

func IOHIDDeviceOpen(arg0 IOHIDDeviceRef, arg1 uint32) int

IOHIDDeviceOpen opens a HID device for communication.

See: https://developer.apple.com/documentation/iokit/1588670-iohiddeviceopen

func IOHIDDeviceRegisterInputReportCallback

func IOHIDDeviceRegisterInputReportCallback(arg0 IOHIDDeviceRef, arg1 uint8, arg2 int, arg3 unsafe.Pointer)

IOHIDDeviceRegisterInputReportCallback registers a callback to be used when an input report is issued by the device.

See: https://developer.apple.com/documentation/iokit/1588666-iohiddeviceregisterinputreportca

func IOHIDDeviceRegisterInputReportWithTimeStampCallback

func IOHIDDeviceRegisterInputReportWithTimeStampCallback(arg0 IOHIDDeviceRef, arg1 uint8, arg2 int, arg3 unsafe.Pointer)

IOHIDDeviceRegisterInputReportWithTimeStampCallback.

See: https://developer.apple.com/documentation/iokit/1588649-iohiddeviceregisterinputreportwi

func IOHIDDeviceRegisterInputValueCallback

func IOHIDDeviceRegisterInputValueCallback(arg0 IOHIDDeviceRef, arg1 unsafe.Pointer)

IOHIDDeviceRegisterInputValueCallback registers a callback to be used when an input value is issued by the device.

See: https://developer.apple.com/documentation/iokit/1588672-iohiddeviceregisterinputvaluecal

func IOHIDDeviceRegisterRemovalCallback

func IOHIDDeviceRegisterRemovalCallback(arg0 IOHIDDeviceRef, arg1 unsafe.Pointer)

IOHIDDeviceRegisterRemovalCallback registers a callback to be used when a IOHIDDevice is removed.

See: https://developer.apple.com/documentation/iokit/1588673-iohiddeviceregisterremovalcallba

func IOHIDDeviceScheduleWithRunLoop

func IOHIDDeviceScheduleWithRunLoop(arg0 IOHIDDeviceRef, arg1 corefoundation.CFRunLoopRef, arg2 corefoundation.CFStringRef)

IOHIDDeviceScheduleWithRunLoop schedules HID device with run loop.

See: https://developer.apple.com/documentation/iokit/1588660-iohiddeviceschedulewithrunloop

func IOHIDDeviceSetInputValueMatching

func IOHIDDeviceSetInputValueMatching(arg0 IOHIDDeviceRef, arg1 corefoundation.CFDictionaryRef)

IOHIDDeviceSetInputValueMatching sets matching criteria for input values received via IOHIDDeviceRegisterInputValueCallback.

See: https://developer.apple.com/documentation/iokit/1588654-iohiddevicesetinputvaluematching

func IOHIDDeviceSetInputValueMatchingMultiple

func IOHIDDeviceSetInputValueMatchingMultiple(arg0 IOHIDDeviceRef, arg1 corefoundation.CFArrayRef)

IOHIDDeviceSetInputValueMatchingMultiple sets multiple matching criteria for input values received via IOHIDDeviceRegisterInputValueCallback.

See: https://developer.apple.com/documentation/iokit/1588645-iohiddevicesetinputvaluematching

func IOHIDDeviceSetProperty

func IOHIDDeviceSetProperty(arg0 IOHIDDeviceRef, arg1 corefoundation.CFStringRef, arg2 corefoundation.CFTypeRef) bool

IOHIDDeviceSetProperty sets a property for an IOHIDDevice.

See: https://developer.apple.com/documentation/iokit/1588653-iohiddevicesetproperty

func IOHIDDeviceSetReport

func IOHIDDeviceSetReport(arg0 IOHIDDeviceRef, arg1 IOHIDReportType, arg2 int, arg3 uint8, arg4 int) int

IOHIDDeviceSetReport sends a report to the device.

See: https://developer.apple.com/documentation/iokit/1588656-iohiddevicesetreport

func IOHIDDeviceSetReportWithCallback

func IOHIDDeviceSetReportWithCallback(arg0 IOHIDDeviceRef, arg1 IOHIDReportType, arg2 int, arg3 uint8, arg4 int, arg5 float64, arg6 unsafe.Pointer) int

IOHIDDeviceSetReportWithCallback sends a report to the device.

See: https://developer.apple.com/documentation/iokit/1588661-iohiddevicesetreportwithcallback

func IOHIDDeviceSetValue

func IOHIDDeviceSetValue(arg0 IOHIDDeviceRef, arg1 IOHIDElementRef, arg2 IOHIDValueRef) int

IOHIDDeviceSetValue sets a value for an element.

See: https://developer.apple.com/documentation/iokit/1588651-iohiddevicesetvalue

func IOHIDDeviceSetValueMultiple

func IOHIDDeviceSetValueMultiple(arg0 IOHIDDeviceRef, arg1 corefoundation.CFDictionaryRef) int

IOHIDDeviceSetValueMultiple sets multiple values for multiple elements.

See: https://developer.apple.com/documentation/iokit/1588669-iohiddevicesetvaluemultiple

func IOHIDDeviceSetValueMultipleWithCallback

func IOHIDDeviceSetValueMultipleWithCallback(arg0 IOHIDDeviceRef, arg1 corefoundation.CFDictionaryRef, arg2 float64, arg3 unsafe.Pointer) int

IOHIDDeviceSetValueMultipleWithCallback sets multiple values for multiple elements and returns status via a completion callback.

See: https://developer.apple.com/documentation/iokit/1588658-iohiddevicesetvaluemultiplewithc

func IOHIDDeviceSetValueWithCallback

func IOHIDDeviceSetValueWithCallback(arg0 IOHIDDeviceRef, arg1 IOHIDElementRef, arg2 IOHIDValueRef, arg3 float64, arg4 unsafe.Pointer) int

IOHIDDeviceSetValueWithCallback sets a value for an element and returns status via a completion callback.

See: https://developer.apple.com/documentation/iokit/1588667-iohiddevicesetvaluewithcallback

func IOHIDDeviceUnscheduleFromRunLoop

func IOHIDDeviceUnscheduleFromRunLoop(arg0 IOHIDDeviceRef, arg1 corefoundation.CFRunLoopRef, arg2 corefoundation.CFStringRef)

IOHIDDeviceUnscheduleFromRunLoop unschedules HID device with run loop.

See: https://developer.apple.com/documentation/iokit/1588650-iohiddeviceunschedulefromrunloop

func IOHIDElementAttach

func IOHIDElementAttach(arg0 IOHIDElementRef, arg1 IOHIDElementRef)

IOHIDElementAttach establish a relationship between one or more elements.

See: https://developer.apple.com/documentation/iokit/1564146-iohidelementattach

func IOHIDElementCopyAttached

func IOHIDElementCopyAttached(arg0 IOHIDElementRef) corefoundation.CFArrayRef

IOHIDElementCopyAttached obtain attached elements.

See: https://developer.apple.com/documentation/iokit/1564123-iohidelementcopyattached

func IOHIDElementDetach

func IOHIDElementDetach(arg0 IOHIDElementRef, arg1 IOHIDElementRef)

IOHIDElementDetach remove a relationship between one or more elements.

See: https://developer.apple.com/documentation/iokit/1564116-iohidelementdetach

func IOHIDElementGetChildren

func IOHIDElementGetChildren(arg0 IOHIDElementRef) corefoundation.CFArrayRef

IOHIDElementGetChildren returns the children for the element.

See: https://developer.apple.com/documentation/iokit/1564119-iohidelementgetchildren

func IOHIDElementGetLogicalMax

func IOHIDElementGetLogicalMax(arg0 IOHIDElementRef) int

IOHIDElementGetLogicalMax returns the maximum value possible for the element.

See: https://developer.apple.com/documentation/iokit/1564143-iohidelementgetlogicalmax

func IOHIDElementGetLogicalMin

func IOHIDElementGetLogicalMin(arg0 IOHIDElementRef) int

IOHIDElementGetLogicalMin returns the minimum value possible for the element.

See: https://developer.apple.com/documentation/iokit/1564137-iohidelementgetlogicalmin

func IOHIDElementGetName

func IOHIDElementGetName(arg0 IOHIDElementRef) corefoundation.CFStringRef

IOHIDElementGetName returns the name for the element.

See: https://developer.apple.com/documentation/iokit/1564117-iohidelementgetname

func IOHIDElementGetPhysicalMax

func IOHIDElementGetPhysicalMax(arg0 IOHIDElementRef) int

IOHIDElementGetPhysicalMax returns the scaled maximum value possible for the element.

See: https://developer.apple.com/documentation/iokit/1564134-iohidelementgetphysicalmax

func IOHIDElementGetPhysicalMin

func IOHIDElementGetPhysicalMin(arg0 IOHIDElementRef) int

IOHIDElementGetPhysicalMin returns the scaled minimum value possible for the element.

See: https://developer.apple.com/documentation/iokit/1564140-iohidelementgetphysicalmin

func IOHIDElementGetProperty

func IOHIDElementGetProperty(arg0 IOHIDElementRef, arg1 corefoundation.CFStringRef) corefoundation.CFTypeRef

IOHIDElementGetProperty returns the an element property.

See: https://developer.apple.com/documentation/iokit/1564118-iohidelementgetproperty

func IOHIDElementGetReportCount

func IOHIDElementGetReportCount(arg0 IOHIDElementRef) uint32

IOHIDElementGetReportCount returns the report count for the element.

See: https://developer.apple.com/documentation/iokit/1564142-iohidelementgetreportcount

func IOHIDElementGetReportID

func IOHIDElementGetReportID(arg0 IOHIDElementRef) uint32

IOHIDElementGetReportID returns the report ID for the element.

See: https://developer.apple.com/documentation/iokit/1564122-iohidelementgetreportid

func IOHIDElementGetReportSize

func IOHIDElementGetReportSize(arg0 IOHIDElementRef) uint32

IOHIDElementGetReportSize returns the report size in bits for the element.

See: https://developer.apple.com/documentation/iokit/1564130-iohidelementgetreportsize

func IOHIDElementGetTypeID

func IOHIDElementGetTypeID() uint

IOHIDElementGetTypeID returns the type identifier of all IOHIDElement instances.

See: https://developer.apple.com/documentation/iokit/1564120-iohidelementgettypeid

func IOHIDElementGetUnit

func IOHIDElementGetUnit(arg0 IOHIDElementRef) uint32

IOHIDElementGetUnit returns the unit property for the element.

See: https://developer.apple.com/documentation/iokit/1564136-iohidelementgetunit

func IOHIDElementGetUnitExponent

func IOHIDElementGetUnitExponent(arg0 IOHIDElementRef) uint32

IOHIDElementGetUnitExponent returns the unit exponenet in base 10 for the element.

See: https://developer.apple.com/documentation/iokit/1564121-iohidelementgetunitexponent

func IOHIDElementGetUsage

func IOHIDElementGetUsage(arg0 IOHIDElementRef) uint32

IOHIDElementGetUsage retrieves the usage for an element.

See: https://developer.apple.com/documentation/iokit/1564126-iohidelementgetusage

func IOHIDElementGetUsagePage

func IOHIDElementGetUsagePage(arg0 IOHIDElementRef) uint32

IOHIDElementGetUsagePage retrieves the usage page for an element.

See: https://developer.apple.com/documentation/iokit/1564128-iohidelementgetusagepage

func IOHIDElementHasNullState

func IOHIDElementHasNullState(arg0 IOHIDElementRef) bool

IOHIDElementHasNullState returns the null state property for the element.

See: https://developer.apple.com/documentation/iokit/1564145-iohidelementhasnullstate

func IOHIDElementHasPreferredState

func IOHIDElementHasPreferredState(arg0 IOHIDElementRef) bool

IOHIDElementHasPreferredState returns the preferred state property for the element.

See: https://developer.apple.com/documentation/iokit/1564141-iohidelementhaspreferredstate

func IOHIDElementIsArray

func IOHIDElementIsArray(arg0 IOHIDElementRef) bool

IOHIDElementIsArray returns the array property for the element.

See: https://developer.apple.com/documentation/iokit/1564133-iohidelementisarray

func IOHIDElementIsNonLinear

func IOHIDElementIsNonLinear(arg0 IOHIDElementRef) bool

IOHIDElementIsNonLinear returns the linear property for the element.

See: https://developer.apple.com/documentation/iokit/1564131-iohidelementisnonlinear

func IOHIDElementIsRelative

func IOHIDElementIsRelative(arg0 IOHIDElementRef) bool

IOHIDElementIsRelative returns the relative property for the element.

See: https://developer.apple.com/documentation/iokit/1564129-iohidelementisrelative

func IOHIDElementIsVirtual

func IOHIDElementIsVirtual(arg0 IOHIDElementRef) bool

IOHIDElementIsVirtual returns the virtual property for the element.

See: https://developer.apple.com/documentation/iokit/1564125-iohidelementisvirtual

func IOHIDElementIsWrapping

func IOHIDElementIsWrapping(arg0 IOHIDElementRef) bool

IOHIDElementIsWrapping returns the wrap property for the element.

See: https://developer.apple.com/documentation/iokit/1564127-iohidelementiswrapping

func IOHIDElementSetProperty

func IOHIDElementSetProperty(arg0 IOHIDElementRef, arg1 corefoundation.CFStringRef, arg2 corefoundation.CFTypeRef) bool

IOHIDElementSetProperty sets an element property.

See: https://developer.apple.com/documentation/iokit/1564138-iohidelementsetproperty

func IOHIDEventSystemClientGetTypeID

func IOHIDEventSystemClientGetTypeID() uint

IOHIDEventSystemClientGetTypeID.

See: https://developer.apple.com/documentation/iokit/2269512-iohideventsystemclientgettypeid

func IOHIDGetAccelerationWithKey deprecated

func IOHIDGetAccelerationWithKey(arg0 uintptr, arg1 corefoundation.CFStringRef, arg2 float64) int32

IOHIDGetAccelerationWithKey.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1555418-iohidgetaccelerationwithkey

func IOHIDGetActivityState deprecated

func IOHIDGetActivityState(arg0 uintptr, arg1 bool) int32

IOHIDGetActivityState.

Deprecated: Deprecated since macOS 11.0.

See: https://developer.apple.com/documentation/iokit/1555412-iohidgetactivitystate

func IOHIDGetButtonEventNum deprecated

func IOHIDGetButtonEventNum(arg0 uintptr, arg1 NXMouseButton, arg2 int) int32

IOHIDGetButtonEventNum.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1555407-iohidgetbuttoneventnum

func IOHIDGetModifierLockState

func IOHIDGetModifierLockState(arg0 uintptr, arg1 int, arg2 bool) int32

IOHIDGetModifierLockState.

See: https://developer.apple.com/documentation/iokit/1555400-iohidgetmodifierlockstate

func IOHIDGetMouseAcceleration deprecated

func IOHIDGetMouseAcceleration(arg0 uintptr, arg1 float64) int32

IOHIDGetMouseAcceleration.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1555417-iohidgetmouseacceleration

func IOHIDGetMouseButtonMode deprecated

func IOHIDGetMouseButtonMode(arg0 uintptr, arg1 int) int32

IOHIDGetMouseButtonMode.

Deprecated: Deprecated since macOS 11.0.

See: https://developer.apple.com/documentation/iokit/1555413-iohidgetmousebuttonmode

func IOHIDGetParameter deprecated

func IOHIDGetParameter(arg0 uintptr, arg1 corefoundation.CFStringRef, arg2 uint, arg3 uint) int32

IOHIDGetParameter.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1555405-iohidgetparameter

func IOHIDGetScrollAcceleration deprecated

func IOHIDGetScrollAcceleration(arg0 uintptr, arg1 float64) int32

IOHIDGetScrollAcceleration.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1555389-iohidgetscrollacceleration

func IOHIDGetStateForSelector

func IOHIDGetStateForSelector(arg0 uintptr, arg1 int, arg2 uint32) int32

IOHIDGetStateForSelector.

See: https://developer.apple.com/documentation/iokit/1555411-iohidgetstateforselector

func IOHIDManagerClose

func IOHIDManagerClose(arg0 IOHIDManagerRef, arg1 uint32) int

IOHIDManagerClose closes the IOHIDManager.

See: https://developer.apple.com/documentation/iokit/1438405-iohidmanagerclose

func IOHIDManagerCopyDevices

func IOHIDManagerCopyDevices(arg0 IOHIDManagerRef) corefoundation.CFSet

IOHIDManagerCopyDevices obtains currently enumerated devices.

See: https://developer.apple.com/documentation/iokit/1438391-iohidmanagercopydevices

func IOHIDManagerGetProperty

func IOHIDManagerGetProperty(arg0 IOHIDManagerRef, arg1 corefoundation.CFStringRef) corefoundation.CFTypeRef

IOHIDManagerGetProperty obtains a property of an IOHIDManager.

See: https://developer.apple.com/documentation/iokit/1438403-iohidmanagergetproperty

func IOHIDManagerGetTypeID

func IOHIDManagerGetTypeID() uint

IOHIDManagerGetTypeID returns the type identifier of all IOHIDManager instances.

See: https://developer.apple.com/documentation/iokit/1438375-iohidmanagergettypeid

func IOHIDManagerOpen

func IOHIDManagerOpen(arg0 IOHIDManagerRef, arg1 uint32) int

IOHIDManagerOpen opens the IOHIDManager.

See: https://developer.apple.com/documentation/iokit/1438369-iohidmanageropen

func IOHIDManagerRegisterDeviceMatchingCallback

func IOHIDManagerRegisterDeviceMatchingCallback(arg0 IOHIDManagerRef, arg1 unsafe.Pointer)

IOHIDManagerRegisterDeviceMatchingCallback registers a callback to be used a device is enumerated.

See: https://developer.apple.com/documentation/iokit/1438399-iohidmanagerregisterdevicematchi

func IOHIDManagerRegisterDeviceRemovalCallback

func IOHIDManagerRegisterDeviceRemovalCallback(arg0 IOHIDManagerRef, arg1 unsafe.Pointer)

IOHIDManagerRegisterDeviceRemovalCallback registers a callback to be used when any enumerated device is removed.

See: https://developer.apple.com/documentation/iokit/1438376-iohidmanagerregisterdeviceremova

func IOHIDManagerRegisterInputReportCallback

func IOHIDManagerRegisterInputReportCallback(arg0 IOHIDManagerRef, arg1 unsafe.Pointer)

IOHIDManagerRegisterInputReportCallback registers a callback to be used when an input report is issued by any enumerated device.

See: https://developer.apple.com/documentation/iokit/1438397-iohidmanagerregisterinputreportc

func IOHIDManagerRegisterInputReportWithTimeStampCallback

func IOHIDManagerRegisterInputReportWithTimeStampCallback(arg0 IOHIDManagerRef, arg1 unsafe.Pointer)

IOHIDManagerRegisterInputReportWithTimeStampCallback.

See: https://developer.apple.com/documentation/iokit/3042788-iohidmanagerregisterinputreportw

func IOHIDManagerRegisterInputValueCallback

func IOHIDManagerRegisterInputValueCallback(arg0 IOHIDManagerRef, arg1 unsafe.Pointer)

IOHIDManagerRegisterInputValueCallback registers a callback to be used when an input value is issued by any enumerated device.

See: https://developer.apple.com/documentation/iokit/1438367-iohidmanagerregisterinputvalueca

func IOHIDManagerSaveToPropertyDomain

func IOHIDManagerSaveToPropertyDomain(arg0 IOHIDManagerRef, arg1 corefoundation.CFStringRef, arg2 corefoundation.CFStringRef, arg3 corefoundation.CFStringRef, arg4 uint32)

IOHIDManagerSaveToPropertyDomain used to write out the current properties to a specific domain.

See: https://developer.apple.com/documentation/iokit/1438395-iohidmanagersavetopropertydomain

func IOHIDManagerScheduleWithRunLoop

func IOHIDManagerScheduleWithRunLoop(arg0 IOHIDManagerRef, arg1 corefoundation.CFRunLoopRef, arg2 corefoundation.CFStringRef)

IOHIDManagerScheduleWithRunLoop schedules HID manager with run loop.

See: https://developer.apple.com/documentation/iokit/1438409-iohidmanagerschedulewithrunloop

func IOHIDManagerSetDeviceMatching

func IOHIDManagerSetDeviceMatching(arg0 IOHIDManagerRef, arg1 corefoundation.CFDictionaryRef)

IOHIDManagerSetDeviceMatching sets matching criteria for device enumeration.

See: https://developer.apple.com/documentation/iokit/1438371-iohidmanagersetdevicematching

func IOHIDManagerSetDeviceMatchingMultiple

func IOHIDManagerSetDeviceMatchingMultiple(arg0 IOHIDManagerRef, arg1 corefoundation.CFArrayRef)

IOHIDManagerSetDeviceMatchingMultiple sets multiple matching criteria for device enumeration.

See: https://developer.apple.com/documentation/iokit/1438387-iohidmanagersetdevicematchingmul

func IOHIDManagerSetInputValueMatching

func IOHIDManagerSetInputValueMatching(arg0 IOHIDManagerRef, arg1 corefoundation.CFDictionaryRef)

IOHIDManagerSetInputValueMatching sets matching criteria for input values received via IOHIDManagerRegisterInputValueCallback.

See: https://developer.apple.com/documentation/iokit/1438389-iohidmanagersetinputvaluematchin

func IOHIDManagerSetInputValueMatchingMultiple

func IOHIDManagerSetInputValueMatchingMultiple(arg0 IOHIDManagerRef, arg1 corefoundation.CFArrayRef)

IOHIDManagerSetInputValueMatchingMultiple sets multiple matching criteria for input values received via IOHIDManagerRegisterInputValueCallback.

See: https://developer.apple.com/documentation/iokit/1438379-iohidmanagersetinputvaluematchin

func IOHIDManagerSetProperty

func IOHIDManagerSetProperty(arg0 IOHIDManagerRef, arg1 corefoundation.CFStringRef, arg2 corefoundation.CFTypeRef) bool

IOHIDManagerSetProperty sets a property for an IOHIDManager.

See: https://developer.apple.com/documentation/iokit/1438401-iohidmanagersetproperty

func IOHIDManagerUnscheduleFromRunLoop

func IOHIDManagerUnscheduleFromRunLoop(arg0 IOHIDManagerRef, arg1 corefoundation.CFRunLoopRef, arg2 corefoundation.CFStringRef)

IOHIDManagerUnscheduleFromRunLoop unschedules HID manager with run loop.

See: https://developer.apple.com/documentation/iokit/1438378-iohidmanagerunschedulefromrunloo

func IOHIDPostEvent deprecated

func IOHIDPostEvent(arg0 uintptr, arg1 uint32, arg2 IOGPoint, arg3 kernel.NXEventData, arg4 uint32, arg5 uint32, arg6 uint32) int32

IOHIDPostEvent.

Deprecated: Deprecated since macOS 11.0.

See: https://developer.apple.com/documentation/iokit/1555406-iohidpostevent

func IOHIDQueueAddElement

func IOHIDQueueAddElement(arg0 IOHIDQueueRef, arg1 IOHIDElementRef)

IOHIDQueueAddElement adds an element to the queue

See: https://developer.apple.com/documentation/iokit/1545835-iohidqueueaddelement

func IOHIDQueueContainsElement

func IOHIDQueueContainsElement(arg0 IOHIDQueueRef, arg1 IOHIDElementRef) bool

IOHIDQueueContainsElement queries the queue to determine if elemement has been added.

See: https://developer.apple.com/documentation/iokit/1545842-iohidqueuecontainselement

func IOHIDQueueGetDepth

func IOHIDQueueGetDepth(arg0 IOHIDQueueRef) int

IOHIDQueueGetDepth obtain the depth of the queue.

See: https://developer.apple.com/documentation/iokit/1545833-iohidqueuegetdepth

func IOHIDQueueGetTypeID

func IOHIDQueueGetTypeID() uint

IOHIDQueueGetTypeID returns the type identifier of all IOHIDQueue instances.

See: https://developer.apple.com/documentation/iokit/1545836-iohidqueuegettypeid

func IOHIDQueueRegisterValueAvailableCallback

func IOHIDQueueRegisterValueAvailableCallback(arg0 IOHIDQueueRef, arg1 unsafe.Pointer)

IOHIDQueueRegisterValueAvailableCallback sets callback to be used when the queue transitions to non-empty.

See: https://developer.apple.com/documentation/iokit/1545829-iohidqueueregistervalueavailable

func IOHIDQueueRemoveElement

func IOHIDQueueRemoveElement(arg0 IOHIDQueueRef, arg1 IOHIDElementRef)

IOHIDQueueRemoveElement removes an element from the queue

See: https://developer.apple.com/documentation/iokit/1545838-iohidqueueremoveelement

func IOHIDQueueScheduleWithRunLoop

func IOHIDQueueScheduleWithRunLoop(arg0 IOHIDQueueRef, arg1 corefoundation.CFRunLoopRef, arg2 corefoundation.CFStringRef)

IOHIDQueueScheduleWithRunLoop schedules queue with run loop.

See: https://developer.apple.com/documentation/iokit/1545841-iohidqueueschedulewithrunloop

func IOHIDQueueSetDepth

func IOHIDQueueSetDepth(arg0 IOHIDQueueRef, arg1 int)

IOHIDQueueSetDepth sets the depth of the queue.

See: https://developer.apple.com/documentation/iokit/1545846-iohidqueuesetdepth

func IOHIDQueueStart

func IOHIDQueueStart(arg0 IOHIDQueueRef)

IOHIDQueueStart starts element value delivery to the queue.

See: https://developer.apple.com/documentation/iokit/1545843-iohidqueuestart

func IOHIDQueueStop

func IOHIDQueueStop(arg0 IOHIDQueueRef)

IOHIDQueueStop stops element value delivery to the queue.

See: https://developer.apple.com/documentation/iokit/1545830-iohidqueuestop

func IOHIDQueueUnscheduleFromRunLoop

func IOHIDQueueUnscheduleFromRunLoop(arg0 IOHIDQueueRef, arg1 corefoundation.CFRunLoopRef, arg2 corefoundation.CFStringRef)

IOHIDQueueUnscheduleFromRunLoop unschedules queue with run loop.

See: https://developer.apple.com/documentation/iokit/1545834-iohidqueueunschedulefromrunloop

func IOHIDRegisterVirtualDisplay deprecated

func IOHIDRegisterVirtualDisplay(arg0 uintptr, arg1 uint32) int32

IOHIDRegisterVirtualDisplay.

Deprecated: Deprecated since macOS 11.0.

See: https://developer.apple.com/documentation/iokit/1555416-iohidregistervirtualdisplay

func IOHIDServiceClientGetTypeID

func IOHIDServiceClientGetTypeID() uint

IOHIDServiceClientGetTypeID.

See: https://developer.apple.com/documentation/iokit/2269431-iohidserviceclientgettypeid

func IOHIDSetAccelerationWithKey deprecated

func IOHIDSetAccelerationWithKey(arg0 uintptr, arg1 corefoundation.CFStringRef, arg2 float64) int32

IOHIDSetAccelerationWithKey.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1555398-iohidsetaccelerationwithkey

func IOHIDSetCursorEnable deprecated

func IOHIDSetCursorEnable(arg0 uintptr, arg1 bool) int32

IOHIDSetCursorEnable.

Deprecated: Deprecated since macOS 11.0.

See: https://developer.apple.com/documentation/iokit/1555409-iohidsetcursorenable

func IOHIDSetEventsEnable

func IOHIDSetEventsEnable(arg0 uintptr, arg1 bool) int32

IOHIDSetEventsEnable.

See: https://developer.apple.com/documentation/iokit/1555396-iohidseteventsenable

func IOHIDSetModifierLockState

func IOHIDSetModifierLockState(arg0 uintptr, arg1 int, arg2 bool) int32

IOHIDSetModifierLockState.

See: https://developer.apple.com/documentation/iokit/1555420-iohidsetmodifierlockstate

func IOHIDSetMouseAcceleration deprecated

func IOHIDSetMouseAcceleration(arg0 uintptr, arg1 float64) int32

IOHIDSetMouseAcceleration.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1555390-iohidsetmouseacceleration

func IOHIDSetMouseButtonMode deprecated

func IOHIDSetMouseButtonMode(arg0 uintptr, arg1 int) int32

IOHIDSetMouseButtonMode.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1555399-iohidsetmousebuttonmode

func IOHIDSetMouseLocation deprecated

func IOHIDSetMouseLocation(arg0 uintptr, arg1 int, arg2 int) int32

IOHIDSetMouseLocation.

Deprecated: Deprecated since macOS 11.0.

See: https://developer.apple.com/documentation/iokit/1555402-iohidsetmouselocation

func IOHIDSetParameter deprecated

func IOHIDSetParameter(arg0 uintptr, arg1 corefoundation.CFStringRef, arg2 uint) int32

IOHIDSetParameter.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1555394-iohidsetparameter

func IOHIDSetScrollAcceleration deprecated

func IOHIDSetScrollAcceleration(arg0 uintptr, arg1 float64) int32

IOHIDSetScrollAcceleration.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1555391-iohidsetscrollacceleration

func IOHIDSetStateForSelector

func IOHIDSetStateForSelector(arg0 uintptr, arg1 int, arg2 uint32) int32

IOHIDSetStateForSelector.

See: https://developer.apple.com/documentation/iokit/1555397-iohidsetstateforselector

func IOHIDSetVirtualDisplayBounds deprecated

func IOHIDSetVirtualDisplayBounds(arg0 uintptr, arg1 uint32, arg2 IOGBounds) int32

IOHIDSetVirtualDisplayBounds.

Deprecated: Deprecated since macOS 11.0.

See: https://developer.apple.com/documentation/iokit/1555392-iohidsetvirtualdisplaybounds

func IOHIDTransactionAddElement

func IOHIDTransactionAddElement(arg0 IOHIDTransactionRef, arg1 IOHIDElementRef)

IOHIDTransactionAddElement adds an element to the transaction @disussion To minimize device traffic it is important to add elements that share a common report type and report id.

See: https://developer.apple.com/documentation/iokit/1561679-iohidtransactionaddelement

func IOHIDTransactionClear

func IOHIDTransactionClear(arg0 IOHIDTransactionRef)

IOHIDTransactionClear clears element transaction values.

See: https://developer.apple.com/documentation/iokit/1561687-iohidtransactionclear

func IOHIDTransactionCommit

func IOHIDTransactionCommit(arg0 IOHIDTransactionRef) int

IOHIDTransactionCommit synchronously commits element transaction to the device.

See: https://developer.apple.com/documentation/iokit/1561681-iohidtransactioncommit

func IOHIDTransactionCommitWithCallback

func IOHIDTransactionCommitWithCallback(arg0 IOHIDTransactionRef, arg1 float64, arg2 unsafe.Pointer) int

IOHIDTransactionCommitWithCallback commits element transaction to the device.

See: https://developer.apple.com/documentation/iokit/1561677-iohidtransactioncommitwithcallba

func IOHIDTransactionContainsElement

func IOHIDTransactionContainsElement(arg0 IOHIDTransactionRef, arg1 IOHIDElementRef) bool

IOHIDTransactionContainsElement queries the transaction to determine if elemement has been added.

See: https://developer.apple.com/documentation/iokit/1561680-iohidtransactioncontainselement

func IOHIDTransactionGetTypeID

func IOHIDTransactionGetTypeID() uint

IOHIDTransactionGetTypeID returns the type identifier of all IOHIDTransaction instances.

See: https://developer.apple.com/documentation/iokit/1561678-iohidtransactiongettypeid

func IOHIDTransactionRemoveElement

func IOHIDTransactionRemoveElement(arg0 IOHIDTransactionRef, arg1 IOHIDElementRef)

IOHIDTransactionRemoveElement removes an element to the transaction

See: https://developer.apple.com/documentation/iokit/1561686-iohidtransactionremoveelement

func IOHIDTransactionScheduleWithRunLoop

func IOHIDTransactionScheduleWithRunLoop(arg0 IOHIDTransactionRef, arg1 corefoundation.CFRunLoopRef, arg2 corefoundation.CFStringRef)

IOHIDTransactionScheduleWithRunLoop schedules transaction with run loop.

See: https://developer.apple.com/documentation/iokit/1561675-iohidtransactionschedulewithrunl

func IOHIDTransactionSetDirection

func IOHIDTransactionSetDirection(arg0 IOHIDTransactionRef, arg1 IOHIDTransactionDirectionType)

IOHIDTransactionSetDirection sets the direction of the transaction @disussion This method is useful for manipulating bi-direction (feature) elements such that you can set or get element values without creating an additional transaction object.

See: https://developer.apple.com/documentation/iokit/1561688-iohidtransactionsetdirection

func IOHIDTransactionSetValue

func IOHIDTransactionSetValue(arg0 IOHIDTransactionRef, arg1 IOHIDElementRef, arg2 IOHIDValueRef, arg3 uint32)

IOHIDTransactionSetValue sets the value for a transaction element.

See: https://developer.apple.com/documentation/iokit/1561676-iohidtransactionsetvalue

func IOHIDTransactionUnscheduleFromRunLoop

func IOHIDTransactionUnscheduleFromRunLoop(arg0 IOHIDTransactionRef, arg1 corefoundation.CFRunLoopRef, arg2 corefoundation.CFStringRef)

IOHIDTransactionUnscheduleFromRunLoop unschedules transaction with run loop.

See: https://developer.apple.com/documentation/iokit/1561682-iohidtransactionunschedulefromru

func IOHIDUnregisterVirtualDisplay deprecated

func IOHIDUnregisterVirtualDisplay(arg0 uintptr, arg1 uint32) int32

IOHIDUnregisterVirtualDisplay.

Deprecated: Deprecated since macOS 11.0.

See: https://developer.apple.com/documentation/iokit/1555410-iohidunregistervirtualdisplay

func IOHIDUserDeviceHandleReportWithTimeStamp

func IOHIDUserDeviceHandleReportWithTimeStamp(arg0 IOHIDUserDeviceRef, arg1 uint64, arg2 uint8, arg3 int) int

IOHIDUserDeviceHandleReportWithTimeStamp.

See: https://developer.apple.com/documentation/iokit/3334955-iohiduserdevicehandlereportwitht

func IOHIDValueGetBytePtr

func IOHIDValueGetBytePtr(arg0 IOHIDValueRef) *uint8

IOHIDValueGetBytePtr returns a byte pointer to the value contained in this IOHIDValueRef.

See: https://developer.apple.com/documentation/iokit/1433292-iohidvaluegetbyteptr

func IOHIDValueGetIntegerValue

func IOHIDValueGetIntegerValue(arg0 IOHIDValueRef) int

IOHIDValueGetIntegerValue returns an integer representaion of the value contained in this IOHIDValueRef.

See: https://developer.apple.com/documentation/iokit/1433289-iohidvaluegetintegervalue

func IOHIDValueGetLength

func IOHIDValueGetLength(arg0 IOHIDValueRef) int

IOHIDValueGetLength returns the size, in bytes, of the value contained in this IOHIDValueRef.

See: https://developer.apple.com/documentation/iokit/1433291-iohidvaluegetlength

func IOHIDValueGetScaledValue

func IOHIDValueGetScaledValue(arg0 IOHIDValueRef, arg1 IOHIDValueScaleType) kernel.Double_t

IOHIDValueGetScaledValue returns an scaled representaion of the value contained in this IOHIDValueRef based on the scale type.

See: https://developer.apple.com/documentation/iokit/1433288-iohidvaluegetscaledvalue

func IOHIDValueGetTimeStamp

func IOHIDValueGetTimeStamp(arg0 IOHIDValueRef) uint64

IOHIDValueGetTimeStamp returns the timestamp value contained in this IOHIDValueRef.

See: https://developer.apple.com/documentation/iokit/1433286-iohidvaluegettimestamp

func IOHIDValueGetTypeID

func IOHIDValueGetTypeID() uint

IOHIDValueGetTypeID returns the type identifier of all IOHIDValue instances.

See: https://developer.apple.com/documentation/iokit/1433293-iohidvaluegettypeid

func IOI2CInterfaceClose

func IOI2CInterfaceClose(arg0 IOI2CConnectRef, arg1 uint32) int

IOI2CInterfaceClose closes an IOI2CConnectRef.

See: https://developer.apple.com/documentation/iokit/1410390-ioi2cinterfaceclose

func IOI2CInterfaceOpen

func IOI2CInterfaceOpen(arg0 uintptr, arg1 uint32, arg2 IOI2CConnectRef) int

IOI2CInterfaceOpen opens an instance of an I2C bus interface, allowing I2C requests to be made.

See: https://developer.apple.com/documentation/iokit/1410388-ioi2cinterfaceopen

func IOI2CSendRequest

func IOI2CSendRequest(arg0 IOI2CConnectRef, arg1 uint32, arg2 IOI2CRequest) int

IOI2CSendRequest carries out the I2C transaction specified by an IOI2CRequest structure.

See: https://developer.apple.com/documentation/iokit/1410373-ioi2csendrequest

func IOIteratorIsValid

func IOIteratorIsValid(iterator uintptr) bool

IOIteratorIsValid checks an iterator is still valid.

See: https://developer.apple.com/documentation/iokit/1514556-ioiteratorisvalid

func IOIteratorNext

func IOIteratorNext(iterator uintptr) uintptr

IOIteratorNext returns the next object in an iteration.

See: https://developer.apple.com/documentation/iokit/1514741-ioiteratornext

func IOIteratorReset

func IOIteratorReset(iterator uintptr)

IOIteratorReset resets an iteration back to the beginning.

See: https://developer.apple.com/documentation/iokit/1514379-ioiteratorreset

func IOKitGetBusyState

func IOKitGetBusyState(mainPort uint32, busyState *uint32) int32

IOKitGetBusyState returns the busyState of all IOServices.

See: https://developer.apple.com/documentation/iokit/1514460-iokitgetbusystate

func IOKitWaitQuiet

func IOKitWaitQuiet(mainPort uint32, waitTime *kernel.Mach_timespec_t) int32

IOKitWaitQuiet wait for a all IOServices' busyState to be zero.

See: https://developer.apple.com/documentation/iokit/1514440-iokitwaitquiet

func IOMainPort

func IOMainPort(bootstrapPort uint32, mainPort *uint32) int32

IOMainPort.

See: https://developer.apple.com/documentation/iokit/3753260-iomainport

func IOMasterPort deprecated

func IOMasterPort(bootstrapPort uint32, mainPort *uint32) int32

IOMasterPort returns the mach port used to initiate communication with IOKit.

Deprecated: Deprecated since macOS 12.0.

See: https://developer.apple.com/documentation/iokit/1514652-iomasterport

func IONetworkClose

func IONetworkClose(arg0 uintptr) int

IONetworkClose close the connection to an IONetworkInterface object.

See: https://developer.apple.com/documentation/iokit/1572704-ionetworkclose

func IONetworkGetDataCapacity

func IONetworkGetDataCapacity(arg0 uintptr, arg1 IONDHandle, arg2 uint32) int

IONetworkGetDataCapacity get the capacity (in bytes) of a network data object.

See: https://developer.apple.com/documentation/iokit/1572712-ionetworkgetdatacapacity

func IONetworkGetDataHandle

func IONetworkGetDataHandle(arg0 uintptr, arg1 int8, arg2 IONDHandle) int

IONetworkGetDataHandle get the handle of a network data object with the given name.

See: https://developer.apple.com/documentation/iokit/1572708-ionetworkgetdatahandle

func IONetworkGetPacketFiltersMask

func IONetworkGetPacketFiltersMask(arg0 uintptr, arg1 unsafe.Pointer, arg2 uint32, arg3 uint32) int

IONetworkGetPacketFiltersMask get the packet filters for a given filter group.

See: https://developer.apple.com/documentation/iokit/1572711-ionetworkgetpacketfiltersmask

func IONetworkOpen

func IONetworkOpen(arg0 uintptr, arg1 uintptr) int

IONetworkOpen open a connection to an IONetworkInterface object.

See: https://developer.apple.com/documentation/iokit/1572709-ionetworkopen

func IONetworkReadData

func IONetworkReadData(arg0 uintptr, arg1 IONDHandle, arg2 uint8, arg3 uint32) int

IONetworkReadData read the buffer of a network data object.

See: https://developer.apple.com/documentation/iokit/1572706-ionetworkreaddata

func IONetworkResetData

func IONetworkResetData(arg0 uintptr, arg1 IONDHandle) int

IONetworkResetData fill the buffer of a network data object with zeroes.

See: https://developer.apple.com/documentation/iokit/1572710-ionetworkresetdata

func IONetworkSetPacketFiltersMask

func IONetworkSetPacketFiltersMask(arg0 uintptr, arg1 unsafe.Pointer, arg2 uint32, arg3 uint32) int

IONetworkSetPacketFiltersMask set the packet filters for a given filter group.

See: https://developer.apple.com/documentation/iokit/1572703-ionetworksetpacketfiltersmask

func IONetworkWriteData

func IONetworkWriteData(arg0 uintptr, arg1 IONDHandle, arg2 uint8, arg3 uint32) int

IONetworkWriteData write to the buffer of a network data object.

See: https://developer.apple.com/documentation/iokit/1572707-ionetworkwritedata

func IONotificationPortDestroy

func IONotificationPortDestroy(notify IONotificationPortRef)

IONotificationPortDestroy destroys a notification object created with IONotificationPortCreate.

See: https://developer.apple.com/documentation/iokit/1514751-ionotificationportdestroy

func IONotificationPortGetMachPort

func IONotificationPortGetMachPort(notify IONotificationPortRef) uint32

IONotificationPortGetMachPort returns a mach_port to be used to listen for notifications.

See: https://developer.apple.com/documentation/iokit/1514875-ionotificationportgetmachport

func IONotificationPortGetRunLoopSource

func IONotificationPortGetRunLoopSource(notify IONotificationPortRef) corefoundation.CFRunLoopSourceRef

IONotificationPortGetRunLoopSource returns a CFRunLoopSource to be used to listen for notifications.

See: https://developer.apple.com/documentation/iokit/1514599-ionotificationportgetrunloopsour

func IONotificationPortSetDispatchQueue

func IONotificationPortSetDispatchQueue(notify IONotificationPortRef, queue dispatch.Queue)

IONotificationPortSetDispatchQueue sets a dispatch queue to be used to listen for notifications.

See: https://developer.apple.com/documentation/iokit/1514596-ionotificationportsetdispatchque

func IONotificationPortSetImportanceReceiver

func IONotificationPortSetImportanceReceiver(notify IONotificationPortRef) int32

IONotificationPortSetImportanceReceiver.

See: https://developer.apple.com/documentation/iokit/2870065-ionotificationportsetimportancer

func IOObjectConformsTo

func IOObjectConformsTo(object uintptr, className string) bool

IOObjectConformsTo performs an OSDynamicCast operation on an IOKit object.

See: https://developer.apple.com/documentation/iokit/1514505-ioobjectconformsto

func IOObjectCopyBundleIdentifierForClass

func IOObjectCopyBundleIdentifierForClass(classname corefoundation.CFStringRef) corefoundation.CFStringRef

IOObjectCopyBundleIdentifierForClass return the bundle identifier of the given class.

See: https://developer.apple.com/documentation/iokit/1514375-ioobjectcopybundleidentifierforc

func IOObjectCopyClass

func IOObjectCopyClass(object uintptr) corefoundation.CFStringRef

IOObjectCopyClass return the class name of an IOKit object.

See: https://developer.apple.com/documentation/iokit/1514781-ioobjectcopyclass

func IOObjectCopySuperclassForClass

func IOObjectCopySuperclassForClass(classname corefoundation.CFStringRef) corefoundation.CFStringRef

IOObjectCopySuperclassForClass return the superclass name of the given class.

See: https://developer.apple.com/documentation/iokit/1514635-ioobjectcopysuperclassforclass

func IOObjectGetClass

func IOObjectGetClass(object uintptr, className string) int32

IOObjectGetClass return the class name of an IOKit object.

See: https://developer.apple.com/documentation/iokit/1514756-ioobjectgetclass

func IOObjectGetKernelRetainCount

func IOObjectGetKernelRetainCount(object uintptr) uint32

IOObjectGetKernelRetainCount returns kernel retain count of an IOKit object.

See: https://developer.apple.com/documentation/iokit/1514325-ioobjectgetkernelretaincount

func IOObjectGetRetainCount

func IOObjectGetRetainCount(object uintptr) uint32

IOObjectGetRetainCount returns kernel retain count of an IOKit object.

See: https://developer.apple.com/documentation/iokit/1514824-ioobjectgetretaincount

func IOObjectGetUserRetainCount

func IOObjectGetUserRetainCount(object uintptr) uint32

IOObjectGetUserRetainCount returns the retain count for the current process of an IOKit object.

See: https://developer.apple.com/documentation/iokit/1514464-ioobjectgetuserretaincount

func IOObjectIsEqualTo

func IOObjectIsEqualTo(object uintptr, anObject uintptr) bool

IOObjectIsEqualTo checks two object handles to see if they represent the same kernel object.

See: https://developer.apple.com/documentation/iokit/1514563-ioobjectisequalto

func IOObjectRelease

func IOObjectRelease(object uintptr) int32

IOObjectRelease releases an object handle previously returned by IOKitLib.

See: https://developer.apple.com/documentation/iokit/1514627-ioobjectrelease

func IOObjectRetain

func IOObjectRetain(object uintptr) int32

IOObjectRetain retains an object handle previously returned by IOKitLib.

See: https://developer.apple.com/documentation/iokit/1514769-ioobjectretain

func IOOpenFirmwarePathMatching deprecated

func IOOpenFirmwarePathMatching(mainPort uint32, options uint32, path string) corefoundation.CFMutableDictionary

IOOpenFirmwarePathMatching.

Deprecated: Deprecated since macOS 10.8.

See: https://developer.apple.com/documentation/iokit/1514715-ioopenfirmwarepathmatching

func IOPMAssertionCopyProperties

func IOPMAssertionCopyProperties(arg0 IOPMAssertionID) corefoundation.CFDictionaryRef

IOPMAssertionCopyProperties copies details about an [IOPMAssertion]

See: https://developer.apple.com/documentation/iokit/1557066-iopmassertioncopyproperties

func IOPMAssertionCreate deprecated

func IOPMAssertionCreate(arg0 corefoundation.CFStringRef, arg1 IOPMAssertionLevel, arg2 IOPMAssertionID) int

IOPMAssertionCreate dynamically requests a system behavior from the power management system.

Deprecated: Deprecated since macOS 10.6.

See: https://developer.apple.com/documentation/iokit/1557118-iopmassertioncreate

func IOPMAssertionCreateWithName

func IOPMAssertionCreateWithName(arg0 corefoundation.CFStringRef, arg1 IOPMAssertionLevel, arg2 corefoundation.CFStringRef, arg3 IOPMAssertionID) int

IOPMAssertionCreateWithName dynamically requests a system behavior from the power management system.

See: https://developer.apple.com/documentation/iokit/1557134-iopmassertioncreatewithname

func IOPMAssertionCreateWithProperties

func IOPMAssertionCreateWithProperties(arg0 corefoundation.CFDictionaryRef, arg1 IOPMAssertionID) int

IOPMAssertionCreateWithProperties creates an IOPMAssertion with more flexibility than IOPMAssertionCreateWithDescription.

See: https://developer.apple.com/documentation/iokit/1557082-iopmassertioncreatewithpropertie

func IOPMAssertionDeclareUserActivity

func IOPMAssertionDeclareUserActivity(arg0 corefoundation.CFStringRef, arg1 IOPMUserActiveType, arg2 IOPMAssertionID) int

IOPMAssertionDeclareUserActivity declares that the user is active on the system.

See: https://developer.apple.com/documentation/iokit/1557127-iopmassertiondeclareuseractivity

func IOPMAssertionRelease

func IOPMAssertionRelease(arg0 IOPMAssertionID) int

IOPMAssertionRelease decrements the assertion's retain count.

See: https://developer.apple.com/documentation/iokit/1557090-iopmassertionrelease

func IOPMAssertionRetain

func IOPMAssertionRetain(arg0 IOPMAssertionID)

IOPMAssertionRetain increments the assertion's retain count.

See: https://developer.apple.com/documentation/iokit/1557071-iopmassertionretain

func IOPMAssertionSetProperty

func IOPMAssertionSetProperty(arg0 IOPMAssertionID, arg1 corefoundation.CFStringRef, arg2 corefoundation.CFTypeRef) int

IOPMAssertionSetProperty sets a property in the assertion.

See: https://developer.apple.com/documentation/iokit/1557107-iopmassertionsetproperty

func IOPMCancelScheduledPowerEvent

func IOPMCancelScheduledPowerEvent(arg0 corefoundation.CFDateRef, arg1 corefoundation.CFStringRef, arg2 corefoundation.CFStringRef) int

IOPMCancelScheduledPowerEvent cancel a previously scheduled power event.

See: https://developer.apple.com/documentation/iokit/1557116-iopmcancelscheduledpowerevent

func IOPMCopyAssertionsByProcess

func IOPMCopyAssertionsByProcess(arg0 corefoundation.CFDictionaryRef) int

IOPMCopyAssertionsByProcess returns a dictionary listing all assertions, grouped by their owning process.

See: https://developer.apple.com/documentation/iokit/1557130-iopmcopyassertionsbyprocess

func IOPMCopyAssertionsStatus

func IOPMCopyAssertionsStatus(arg0 corefoundation.CFDictionaryRef) int

IOPMCopyAssertionsStatus returns a list of available assertions and their system-wide levels.

See: https://developer.apple.com/documentation/iokit/1557072-iopmcopyassertionsstatus

func IOPMCopyBatteryInfo

func IOPMCopyBatteryInfo(arg0 uint32, arg1 corefoundation.CFArrayRef) int

IOPMCopyBatteryInfo request raw battery data from the system.

See: https://developer.apple.com/documentation/iokit/1557138-iopmcopybatteryinfo

func IOPMCopyCPUPowerStatus

func IOPMCopyCPUPowerStatus(arg0 corefoundation.CFDictionaryRef) int

IOPMCopyCPUPowerStatus copy status of all current CPU power levels.

See: https://developer.apple.com/documentation/iokit/1557079-iopmcopycpupowerstatus

func IOPMCopyScheduledPowerEvents

func IOPMCopyScheduledPowerEvents() corefoundation.CFArrayRef

IOPMCopyScheduledPowerEvents list all scheduled system power events

See: https://developer.apple.com/documentation/iokit/1557109-iopmcopyscheduledpowerevents

func IOPMFindPowerManagement

func IOPMFindPowerManagement(arg0 uint32) uintptr

IOPMFindPowerManagement finds the Root Power Domain IOService.

See: https://developer.apple.com/documentation/iokit/1557133-iopmfindpowermanagement

func IOPMGetAggressiveness

func IOPMGetAggressiveness(arg0 uintptr, arg1 uint, arg2 uint) int

IOPMGetAggressiveness retrieves the current value of one of the aggressiveness factors in IOKit Power Management.

See: https://developer.apple.com/documentation/iokit/1557117-iopmgetaggressiveness

func IOPMGetThermalWarningLevel

func IOPMGetThermalWarningLevel(arg0 uint32) int

IOPMGetThermalWarningLevel get thermal warning level of the system.

See: https://developer.apple.com/documentation/iokit/1557103-iopmgetthermalwarninglevel

func IOPMSchedulePowerEvent

func IOPMSchedulePowerEvent(arg0 corefoundation.CFDateRef, arg1 corefoundation.CFStringRef, arg2 corefoundation.CFStringRef) int

IOPMSchedulePowerEvent schedule the machine to wake from sleep, power on, go to sleep, or shutdown.

See: https://developer.apple.com/documentation/iokit/1557076-iopmschedulepowerevent

func IOPMSetAggressiveness

func IOPMSetAggressiveness(arg0 uintptr, arg1 uint, arg2 uint) int

IOPMSetAggressiveness sets one of the aggressiveness factors in IOKit Power Management.

See: https://developer.apple.com/documentation/iokit/1557098-iopmsetaggressiveness

func IOPMSleepEnabled

func IOPMSleepEnabled() bool

IOPMSleepEnabled tells whether the system supports full sleep, or just doze

See: https://developer.apple.com/documentation/iokit/1557074-iopmsleepenabled

func IOPMSleepSystem

func IOPMSleepSystem(arg0 uintptr) int

IOPMSleepSystem request that the system initiate sleep.

See: https://developer.apple.com/documentation/iokit/1557121-iopmsleepsystem

func IOPSCopyExternalPowerAdapterDetails

func IOPSCopyExternalPowerAdapterDetails() corefoundation.CFDictionaryRef

IOPSCopyExternalPowerAdapterDetails returns a CFDictionary that describes the attached (AC) external power adapter (if any external power adapter is attached.

See: https://developer.apple.com/documentation/iokit/1523866-iopscopyexternalpoweradapterdeta

func IOPSCopyPowerSourcesInfo

func IOPSCopyPowerSourcesInfo() corefoundation.CFTypeRef

IOPSCopyPowerSourcesInfo returns a blob of Power Source information in an opaque CFTypeRef.

See: https://developer.apple.com/documentation/iokit/1523839-iopscopypowersourcesinfo

func IOPSCopyPowerSourcesList

func IOPSCopyPowerSourcesList(arg0 corefoundation.CFTypeRef) corefoundation.CFArrayRef

IOPSCopyPowerSourcesList returns a CFArray of Power Source handles, each of type CFTypeRef.

See: https://developer.apple.com/documentation/iokit/1523856-iopscopypowersourceslist

func IOPSGetPowerSourceDescription

func IOPSGetPowerSourceDescription(arg0 corefoundation.CFTypeRef, arg1 corefoundation.CFTypeRef) corefoundation.CFDictionaryRef

IOPSGetPowerSourceDescription returns a CFDictionary with readable information about the specific power source.

See: https://developer.apple.com/documentation/iokit/1523867-iopsgetpowersourcedescription

func IOPSGetTimeRemainingEstimate

func IOPSGetTimeRemainingEstimate() float64

IOPSGetTimeRemainingEstimate returns the estimated minutes remaining until all power sources (battery and/or UPS's) are empty, or returns kIOPSTimeRemainingUnlimited if attached to an unlimited power source.

See: https://developer.apple.com/documentation/iokit/1523835-iopsgettimeremainingestimate

func IOPSNotificationCreateRunLoopSource

func IOPSNotificationCreateRunLoopSource(arg0 unsafe.Pointer) corefoundation.CFRunLoopSourceRef

IOPSNotificationCreateRunLoopSource returns a CFRunLoopSourceRef that notifies the caller when power source information changes.

See: https://developer.apple.com/documentation/iokit/1523868-iopsnotificationcreaterunloopsou

func IORegisterApp deprecated

func IORegisterApp(arg0 uintptr, arg1 IONotificationPortRef, arg2 IOServiceInterestCallback, arg3 uintptr) uintptr

IORegisterApp connects the caller to an IOService for the purpose of receiving power state change notifications for the device controlled by the IOService.

Deprecated: Deprecated since macOS 10.9.

See: https://developer.apple.com/documentation/iokit/1557102-ioregisterapp

func IORegisterForSystemPower

func IORegisterForSystemPower(arg0 IONotificationPortRef, arg1 IOServiceInterestCallback, arg2 uintptr) uintptr

IORegisterForSystemPower connects the caller to the Root Power Domain IOService for the purpose of receiving sleep & wake notifications for the system.

See: https://developer.apple.com/documentation/iokit/1557114-ioregisterforsystempower

func IORegistryCreateIterator

func IORegistryCreateIterator(mainPort uint32, plane string, options uint32, iterator *uintptr) int32

IORegistryCreateIterator create an iterator rooted at the registry root.

See: https://developer.apple.com/documentation/iokit/1514238-ioregistrycreateiterator

func IORegistryEntryCreateCFProperties

func IORegistryEntryCreateCFProperties(entry uintptr, properties *corefoundation.CFMutableDictionary, allocator corefoundation.CFAllocatorRef, options uint32) int32

IORegistryEntryCreateCFProperties create a CF dictionary representation of a registry entry's property table.

See: https://developer.apple.com/documentation/iokit/1514310-ioregistryentrycreatecfpropertie

func IORegistryEntryCreateCFProperty

func IORegistryEntryCreateCFProperty(entry uintptr, key corefoundation.CFStringRef, allocator corefoundation.CFAllocatorRef, options uint32) corefoundation.CFTypeRef

IORegistryEntryCreateCFProperty create a CF representation of a registry entry's property.

See: https://developer.apple.com/documentation/iokit/1514293-ioregistryentrycreatecfproperty

func IORegistryEntryCreateIterator

func IORegistryEntryCreateIterator(entry uintptr, plane string, options uint32, iterator *uintptr) int32

IORegistryEntryCreateIterator create an iterator rooted at a given registry entry.

See: https://developer.apple.com/documentation/iokit/1514318-ioregistryentrycreateiterator

func IORegistryEntryFromPath

func IORegistryEntryFromPath(mainPort uint32, path string) uintptr

IORegistryEntryFromPath looks up a registry entry by path.

See: https://developer.apple.com/documentation/iokit/1514802-ioregistryentryfrompath

func IORegistryEntryGetChildEntry

func IORegistryEntryGetChildEntry(entry uintptr, plane string, child *uintptr) int32

IORegistryEntryGetChildEntry returns the first child of a registry entry in a plane.

See: https://developer.apple.com/documentation/iokit/1514496-ioregistryentrygetchildentry

func IORegistryEntryGetChildIterator

func IORegistryEntryGetChildIterator(entry uintptr, plane string, iterator *uintptr) int32

IORegistryEntryGetChildIterator returns an iterator over a registry entry’s child entries in a plane.

See: https://developer.apple.com/documentation/iokit/1514703-ioregistryentrygetchilditerator

func IORegistryEntryGetLocationInPlane

func IORegistryEntryGetLocationInPlane(entry uintptr, plane string, location string) int32

IORegistryEntryGetLocationInPlane returns a C-string location assigned to a registry entry, in a specified plane.

See: https://developer.apple.com/documentation/iokit/1514340-ioregistryentrygetlocationinplan

func IORegistryEntryGetName

func IORegistryEntryGetName(entry uintptr, name string) int32

IORegistryEntryGetName returns a C-string name assigned to a registry entry.

See: https://developer.apple.com/documentation/iokit/1514323-ioregistryentrygetname

func IORegistryEntryGetNameInPlane

func IORegistryEntryGetNameInPlane(entry uintptr, plane string, name string) int32

IORegistryEntryGetNameInPlane returns a C-string name assigned to a registry entry, in a specified plane.

See: https://developer.apple.com/documentation/iokit/1514475-ioregistryentrygetnameinplane

func IORegistryEntryGetParentEntry

func IORegistryEntryGetParentEntry(entry uintptr, plane string, parent *uintptr) int32

IORegistryEntryGetParentEntry returns the first parent of a registry entry in a plane.

See: https://developer.apple.com/documentation/iokit/1514454-ioregistryentrygetparententry

func IORegistryEntryGetParentIterator

func IORegistryEntryGetParentIterator(entry uintptr, plane string, iterator *uintptr) int32

IORegistryEntryGetParentIterator returns an iterator over a registry entry’s parent entries in a plane.

See: https://developer.apple.com/documentation/iokit/1514366-ioregistryentrygetparentiterator

func IORegistryEntryGetPath

func IORegistryEntryGetPath(entry uintptr, plane string, path string) int32

IORegistryEntryGetPath create a path for a registry entry.

See: https://developer.apple.com/documentation/iokit/1514229-ioregistryentrygetpath

func IORegistryEntryGetProperty

func IORegistryEntryGetProperty(entry uintptr, propertyName string, buffer string, size *uint32) int32

IORegistryEntryGetProperty.

See: https://developer.apple.com/documentation/iokit/1514254-ioregistryentrygetproperty

func IORegistryEntryGetRegistryEntryID

func IORegistryEntryGetRegistryEntryID(entry uintptr, entryID *uint64) int32

IORegistryEntryGetRegistryEntryID returns an ID for the registry entry that is global to all tasks.

See: https://developer.apple.com/documentation/iokit/1514719-ioregistryentrygetregistryentryi

func IORegistryEntryIDMatching

func IORegistryEntryIDMatching(entryID uint64) corefoundation.CFMutableDictionary

IORegistryEntryIDMatching create a matching dictionary that specifies an IOService match based on a registry entry ID.

See: https://developer.apple.com/documentation/iokit/1514880-ioregistryentryidmatching

func IORegistryEntryInPlane

func IORegistryEntryInPlane(entry uintptr, plane string) bool

IORegistryEntryInPlane determines if the registry entry is attached in a plane.

See: https://developer.apple.com/documentation/iokit/1514668-ioregistryentryinplane

func IORegistryEntrySearchCFProperty

func IORegistryEntrySearchCFProperty(entry uintptr, plane string, key corefoundation.CFStringRef, allocator corefoundation.CFAllocatorRef, options uint32) corefoundation.CFTypeRef

IORegistryEntrySearchCFProperty create a CF representation of a registry entry's property.

See: https://developer.apple.com/documentation/iokit/1514537-ioregistryentrysearchcfproperty

func IORegistryEntrySetCFProperties

func IORegistryEntrySetCFProperties(entry uintptr, properties corefoundation.CFTypeRef) int32

IORegistryEntrySetCFProperties set CF container based properties in a registry entry.

See: https://developer.apple.com/documentation/iokit/1514414-ioregistryentrysetcfproperties

func IORegistryEntrySetCFProperty

func IORegistryEntrySetCFProperty(entry uintptr, propertyName corefoundation.CFStringRef, property corefoundation.CFTypeRef) int32

IORegistryEntrySetCFProperty set a CF container based property in a registry entry.

See: https://developer.apple.com/documentation/iokit/1514882-ioregistryentrysetcfproperty

func IORegistryGetRootEntry

func IORegistryGetRootEntry(mainPort uint32) uintptr

IORegistryGetRootEntry return a handle to the registry root.

See: https://developer.apple.com/documentation/iokit/1514878-ioregistrygetrootentry

func IORegistryIteratorEnterEntry

func IORegistryIteratorEnterEntry(iterator uintptr) int32

IORegistryIteratorEnterEntry recurse into the current entry in the registry iteration.

See: https://developer.apple.com/documentation/iokit/1514822-ioregistryiteratorenterentry

func IORegistryIteratorExitEntry

func IORegistryIteratorExitEntry(iterator uintptr) int32

IORegistryIteratorExitEntry exits a level of recursion, restoring the current entry.

See: https://developer.apple.com/documentation/iokit/1514334-ioregistryiteratorexitentry

func IOServiceAddInterestNotification

func IOServiceAddInterestNotification(notifyPort IONotificationPortRef, service uintptr, interestType string, callback IOServiceInterestCallback, refCon uintptr, notification *uintptr) int32

IOServiceAddInterestNotification register for notification of state changes in an IOService.

See: https://developer.apple.com/documentation/iokit/1514866-ioserviceaddinterestnotification

func IOServiceAddMatchingNotification

func IOServiceAddMatchingNotification(notifyPort IONotificationPortRef, notificationType string, matching corefoundation.CFDictionaryRef, callback IOServiceMatchingCallback, refCon uintptr, notification *uintptr) int32

IOServiceAddMatchingNotification look up registered IOService objects that match a matching dictionary, and install a notification request of new IOServices that match.

See: https://developer.apple.com/documentation/iokit/1514362-ioserviceaddmatchingnotification

func IOServiceAddNotification deprecated

func IOServiceAddNotification(mainPort uint32, notificationType string, matching corefoundation.CFDictionaryRef, wakePort uint32, reference unsafe.Pointer, notification *uintptr) int32

IOServiceAddNotification.

Deprecated: Deprecated since macOS 10.6.

See: https://developer.apple.com/documentation/iokit/1514382-ioserviceaddnotification

func IOServiceAuthorize

func IOServiceAuthorize(service uintptr, options uint32) int32

IOServiceAuthorize.

See: https://developer.apple.com/documentation/iokit/1514533-ioserviceauthorize

func IOServiceClose

func IOServiceClose(connect uintptr) int32

IOServiceClose close a connection to an IOService and destroy the connect handle.

See: https://developer.apple.com/documentation/iokit/1514646-ioserviceclose

func IOServiceGetBusyState

func IOServiceGetBusyState(service uintptr, busyState *uint32) int32

IOServiceGetBusyState returns the busyState of an IOService.

See: https://developer.apple.com/documentation/iokit/1514607-ioservicegetbusystate

func IOServiceGetMatchingService

func IOServiceGetMatchingService(mainPort uint32, matching corefoundation.CFDictionaryRef) uintptr

IOServiceGetMatchingService look up a registered IOService object that matches a matching dictionary.

See: https://developer.apple.com/documentation/iokit/1514535-ioservicegetmatchingservice

func IOServiceGetMatchingServices

func IOServiceGetMatchingServices(mainPort uint32, matching corefoundation.CFDictionaryRef, existing *uintptr) int32

IOServiceGetMatchingServices look up registered IOService objects that match a matching dictionary.

See: https://developer.apple.com/documentation/iokit/1514494-ioservicegetmatchingservices

func IOServiceMatchPropertyTable

func IOServiceMatchPropertyTable(service uintptr, matching corefoundation.CFDictionaryRef, matches *bool) int32

IOServiceMatchPropertyTable match an IOService objects with matching dictionary.

See: https://developer.apple.com/documentation/iokit/1514685-ioservicematchpropertytable

func IOServiceMatching

func IOServiceMatching(name string) corefoundation.CFMutableDictionary

IOServiceMatching create a matching dictionary that specifies an IOService class match.

See: https://developer.apple.com/documentation/iokit/1514687-ioservicematching

func IOServiceNameMatching

func IOServiceNameMatching(name string) corefoundation.CFMutableDictionary

IOServiceNameMatching create a matching dictionary that specifies an IOService name match.

See: https://developer.apple.com/documentation/iokit/1514416-ioservicenamematching

func IOServiceOFPathToBSDName deprecated

func IOServiceOFPathToBSDName(mainPort uint32, openFirmwarePath string, bsdName string) int32

IOServiceOFPathToBSDName.

Deprecated: Deprecated since macOS 10.8.

See: https://developer.apple.com/documentation/iokit/1514661-ioserviceofpathtobsdname

func IOServiceOpen

func IOServiceOpen(service uintptr, owningTask kernel.Task_port_t, type_ uint32, connect *uintptr) int32

IOServiceOpen a request to create a connection to an IOService.

See: https://developer.apple.com/documentation/iokit/1514515-ioserviceopen

func IOServiceOpenAsFileDescriptor

func IOServiceOpenAsFileDescriptor(service uintptr, oflag unsafe.Pointer) unsafe.Pointer

IOServiceOpenAsFileDescriptor.

See: https://developer.apple.com/documentation/iokit/1514879-ioserviceopenasfiledescriptor

func IOServiceRequestProbe

func IOServiceRequestProbe(service uintptr, options uint32) int32

IOServiceRequestProbe a request to rescan a bus for device changes.

See: https://developer.apple.com/documentation/iokit/1514364-ioservicerequestprobe

func IOServiceWaitQuiet

func IOServiceWaitQuiet(service uintptr, waitTime *kernel.Mach_timespec_t) int32

IOServiceWaitQuiet wait for an IOService's busyState to be zero.

See: https://developer.apple.com/documentation/iokit/1514573-ioservicewaitquiet

func KextManagerCopyLoadedKextInfo

func KextManagerCopyLoadedKextInfo(arg0 corefoundation.CFArrayRef, arg1 corefoundation.CFArrayRef) corefoundation.CFDictionaryRef

KextManagerCopyLoadedKextInfo returns information about loaded kexts in a dictionary.

See: https://developer.apple.com/documentation/iokit/1562908-kextmanagercopyloadedkextinfo

func KextManagerCreateURLForBundleIdentifier

func KextManagerCreateURLForBundleIdentifier(arg0 corefoundation.CFAllocatorRef, arg1 corefoundation.CFStringRef) corefoundation.CFURLRef

KextManagerCreateURLForBundleIdentifier create a URL locating a kext with a given bundle identifier.

See: https://developer.apple.com/documentation/iokit/1562905-kextmanagercreateurlforbundleide

func KextManagerLoadKextWithIdentifier

func KextManagerLoadKextWithIdentifier(arg0 corefoundation.CFStringRef, arg1 corefoundation.CFArrayRef) unsafe.Pointer

KextManagerLoadKextWithIdentifier request the kext loading system to load a kext with a given bundle identifier.

See: https://developer.apple.com/documentation/iokit/1562907-kextmanagerloadkextwithidentifie

func KextManagerLoadKextWithURL

func KextManagerLoadKextWithURL(arg0 corefoundation.CFURLRef, arg1 corefoundation.CFArrayRef) unsafe.Pointer

KextManagerLoadKextWithURL request the kext loading system to load a kext with a given URL.

See: https://developer.apple.com/documentation/iokit/1562906-kextmanagerloadkextwithurl

func KextManagerUnloadKextWithIdentifier

func KextManagerUnloadKextWithIdentifier(arg0 corefoundation.CFStringRef) unsafe.Pointer

KextManagerUnloadKextWithIdentifier request the kernel to unload a kext with a given bundle identifier.

See: https://developer.apple.com/documentation/iokit/1562904-kextmanagerunloadkextwithidentif

func NXClickTime deprecated

func NXClickTime(arg0 NXEventHandle) float64

NXClickTime.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1574526-nxclicktime

func NXCloseEventStatus deprecated

func NXCloseEventStatus(arg0 NXEventHandle)

NXCloseEventStatus.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1574524-nxcloseeventstatus

func NXGetClickSpace deprecated

func NXGetClickSpace(arg0 NXEventHandle, arg1 NXSize)

NXGetClickSpace.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1574518-nxgetclickspace

func NXKeyRepeatInterval deprecated

func NXKeyRepeatInterval(arg0 NXEventHandle) float64

NXKeyRepeatInterval.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1574515-nxkeyrepeatinterval

func NXKeyRepeatThreshold deprecated

func NXKeyRepeatThreshold(arg0 NXEventHandle) float64

NXKeyRepeatThreshold.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1574514-nxkeyrepeatthreshold

func NXResetKeyboard deprecated

func NXResetKeyboard(arg0 NXEventHandle)

NXResetKeyboard.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1574523-nxresetkeyboard

func NXResetMouse deprecated

func NXResetMouse(arg0 NXEventHandle)

NXResetMouse.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1574520-nxresetmouse

func NXSetClickSpace deprecated

func NXSetClickSpace(arg0 NXEventHandle, arg1 NXSize)

NXSetClickSpace.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1574525-nxsetclickspace

func NXSetClickTime deprecated

func NXSetClickTime(arg0 NXEventHandle, arg1 float64)

NXSetClickTime.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1574522-nxsetclicktime

func NXSetKeyRepeatInterval deprecated

func NXSetKeyRepeatInterval(arg0 NXEventHandle, arg1 float64)

NXSetKeyRepeatInterval.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1574519-nxsetkeyrepeatinterval

func NXSetKeyRepeatThreshold deprecated

func NXSetKeyRepeatThreshold(arg0 NXEventHandle, arg1 float64)

NXSetKeyRepeatThreshold.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1574516-nxsetkeyrepeatthreshold

func OSGetNotificationFromMessage

func OSGetNotificationFromMessage(msg unsafe.Pointer, index uint32, type_ *uint32, reference unsafe.Pointer, content unsafe.Pointer, size *kernel.Vm_size_t) int32

OSGetNotificationFromMessage.

See: https://developer.apple.com/documentation/iokit/1514263-osgetnotificationfrommessage

Types

type Bm12Cursor

type Bm12Cursor struct {
	Image unsafe.Pointer // This array contains the cursor images.
	Mask  unsafe.Pointer // This array contains the cursor mask.
	Save  unsafe.Pointer // This array stores the pixel values of the region underneath the cursor in its last drawn position.

}

Bm12Cursor - Cursor image for 1-bit cursor.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/iokit/bm12cursor

type Bm18Cursor

type Bm18Cursor struct {
	Image unsafe.Pointer // This array contains cursor color values, which are converted to displayed colors through the color table. The array is two dimensional and its first index is the cursor frame and the second index is the cursor pixel.
	Mask  unsafe.Pointer // This array contains the cursor alpha mask. The array is two dimensional with the same indexing as the image. If an alpha mask pixel is 0 and the corresponding image pixel is set to white for the display, then this cursor pixel will invert pixels on the display.
	Save  unsafe.Pointer // This array stores the color values of the region underneath the cursor in its last drawn position.

}

Bm18Cursor - Cursor image for 8-bit cursor.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/iokit/bm18cursor

type Bm34Cursor

type Bm34Cursor struct {
	Image unsafe.Pointer // This array defines the cursor color values and transparency. The array is two dimensional and its first index is the cursor frame and the second index is the cursor pixel. A value of 0 means the pixel is transparent.
	Save  unsafe.Pointer // This array stores the color values of the region underneath the cursor in its last drawn position.

}

Bm34Cursor - Cursor image for 15-bit cursor.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/iokit/bm34cursor

type Bm38Cursor

type Bm38Cursor struct {
	Image unsafe.Pointer // This array defines the cursor color values and transparency. The array is two dimensional and its first index is the cursor frame and the second index is the cursor pixel. The lower 24 bits of a pixel's value contain the RGB color, while the upper 8 bits contain the alpha value.
	Save  unsafe.Pointer // This array stores the color values of the region underneath the cursor in its last drawn position.

}

Bm38Cursor - Cursor image for 24-bit cursor.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/iokit/bm38cursor

type IOATASMARTInterface

type IOATASMARTInterface = unsafe.Pointer

IOATASMARTInterface is self-Monitoring, Analysis, and Reporting Technology Interface.

See: https://developer.apple.com/documentation/iokit/ioatasmartinterface

type IOAsyncCallback

type IOAsyncCallback = func(unsafe.Pointer, int, objectivec.IObject, uint32)

IOAsyncCallback is standard callback function for asynchronous I/O requests with lots of extra arguments beyond a refcon and result code.

See: https://developer.apple.com/documentation/iokit/ioasynccallback

type IOAsyncCallback0

type IOAsyncCallback0 = func(unsafe.Pointer, int)

IOAsyncCallback0 is standard callback function for asynchronous I/O requests with no extra arguments beyond a refcon and result code.

See: https://developer.apple.com/documentation/iokit/ioasynccallback0

type IOAsyncCallback1

type IOAsyncCallback1 = func(unsafe.Pointer, int, unsafe.Pointer)

IOAsyncCallback1 is standard callback function for asynchronous I/O requests with one extra argument beyond a refcon and result code. This is often a count of the number of bytes transferred.

See: https://developer.apple.com/documentation/iokit/ioasynccallback1

type IOAsyncCallback2

type IOAsyncCallback2 = func(unsafe.Pointer, int, unsafe.Pointer, unsafe.Pointer)

IOAsyncCallback2 is standard callback function for asynchronous I/O requests with two extra arguments beyond a refcon and result code.

See: https://developer.apple.com/documentation/iokit/ioasynccallback2

type IOAsyncCompletionContent

type IOAsyncCompletionContent struct {
	Result int
	Args   unsafe.Pointer
}

IOAsyncCompletionContent

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/iokit/ioasynccompletioncontent-ieg

type IOAudioControlCalls

type IOAudioControlCalls = unsafe.Pointer

IOAudioControlCalls is the set of constants passed to IOAudioControlUserClient::getExternalMethodForIndex() when making calls from the IOAudioFamily user client code.

See: https://developer.apple.com/documentation/iokit/ioaudiocontrolcalls

type IOAudioControlNotifications

type IOAudioControlNotifications = unsafe.Pointer

IOAudioControlNotifications is the set of constants passed in the type field of IOAudioControlUserClient::registerNotificaitonPort().

See: https://developer.apple.com/documentation/iokit/ioaudiocontrolnotifications

type IOAudioEngineCalls

type IOAudioEngineCalls = unsafe.Pointer

IOAudioEngineCalls is the set of constants passed to IOAudioEngineUserClient::getExternalMethodForIndex() when making calls from the IOAudioFamily user client code.

See: https://developer.apple.com/documentation/iokit/ioaudioenginecalls

type IOAudioEngineMemory

type IOAudioEngineMemory = unsafe.Pointer

IOAudioEngineMemory is used to identify the type of memory requested by a client process to be mapped into its process space.

See: https://developer.apple.com/documentation/iokit/ioaudioenginememory

type IOAudioEngineState

type IOAudioEngineState = unsafe.Pointer

IOAudioEngineState is represents the state of an IOAudioEngine.

See: https://developer.apple.com/documentation/iokit/ioaudioenginestate

type IOAudioEngineStatus

type IOAudioEngineStatus = unsafe.Pointer

IOAudioEngineStatus is shared-memory structure giving audio engine status.

See: https://developer.apple.com/documentation/iokit/ioaudioenginestatus

type IOAudioNotificationMessage

type IOAudioNotificationMessage = unsafe.Pointer

IOAudioNotificationMessage is used in the mach message for IOAudio notifications.

See: https://developer.apple.com/documentation/iokit/ioaudionotificationmessage

type IOAudioSMPTETime

type IOAudioSMPTETime = unsafe.Pointer

IOAudioSMPTETime is a structure for holding a SMPTE time.

See: https://developer.apple.com/documentation/iokit/ioaudiosmptetime

type IOAudioStreamDirection

type IOAudioStreamDirection = unsafe.Pointer

IOAudioStreamDirection is represents the direction of an IOAudioStream.

See: https://developer.apple.com/documentation/iokit/ioaudiostreamdirection

type IODataQueueAppendix

type IODataQueueAppendix = unsafe.Pointer

IODataQueueAppendix is a struct mapping to the appendix region of a data queue.

See: https://developer.apple.com/documentation/iokit/iodataqueueappendix

type IODataQueueEntry

type IODataQueueEntry = unsafe.Pointer

IODataQueueEntry is represents an entry within the data queue.

See: https://developer.apple.com/documentation/iokit/iodataqueueentry

func IODataQueuePeek

func IODataQueuePeek(dataQueue *IODataQueueMemory) IODataQueueEntry

IODataQueuePeek used to peek at the next entry on the queue.

See: https://developer.apple.com/documentation/iokit/1514649-iodataqueuepeek

type IODataQueueMemory

type IODataQueueMemory = unsafe.Pointer

IODataQueueMemory is a struct mapping to the header region of a data queue.

See: https://developer.apple.com/documentation/iokit/iodataqueuememory

type IOFWAsyncStreamListenerInterface

type IOFWAsyncStreamListenerInterface = unsafe.Pointer

IOFWAsyncStreamListenerInterface is represents and provides management functions for a asyn stream listener object.

See: https://developer.apple.com/documentation/iokit/iofwasyncstreamlistenerinterface

type IOFireWireAVCLibConsumerInterface

type IOFireWireAVCLibConsumerInterface = unsafe.Pointer

IOFireWireAVCLibConsumerInterface is interface for an asynchronous connection consumer.

See: https://developer.apple.com/documentation/iokit/iofirewireavclibconsumerinterface

type IOFireWireAVCLibProtocolInterface

type IOFireWireAVCLibProtocolInterface = unsafe.Pointer

IOFireWireAVCLibProtocolInterface is initial interface discovered for all AVC protocol drivers.

See: https://developer.apple.com/documentation/iokit/iofirewireavclibprotocolinterface

type IOFireWireAVCLibUnitInterface

type IOFireWireAVCLibUnitInterface = unsafe.Pointer

IOFireWireAVCLibUnitInterface is initial interface discovered for all AVC Unit drivers.

See: https://developer.apple.com/documentation/iokit/iofirewireavclibunitinterface

type IOFireWireCommandInterface

type IOFireWireCommandInterface = unsafe.Pointer

IOFireWireCommandInterface is iOFireWireLib command object.

See: https://developer.apple.com/documentation/iokit/iofirewirecommandinterface

type IOFireWireConfigDirectoryInterface

type IOFireWireConfigDirectoryInterface = unsafe.Pointer

IOFireWireConfigDirectoryInterface is iOFireWireLib device config ROM browsing interface.

See: https://developer.apple.com/documentation/iokit/iofirewireconfigdirectoryinterface

type IOFireWireDeviceInterface

type IOFireWireDeviceInterface = unsafe.Pointer

IOFireWireDeviceInterface is iOFireWireDeviceInterface is your primary gateway to the functionality contained in IOFireWireLib.

See: https://developer.apple.com/documentation/iokit/iofirewiredeviceinterface

type IOFireWireIsochChannelInterface

type IOFireWireIsochChannelInterface = unsafe.Pointer

IOFireWireIsochChannelInterface is fireWire user client isochronous channel object.

See: https://developer.apple.com/documentation/iokit/iofirewireisochchannelinterface

type IOFireWireIsochPortInterface

type IOFireWireIsochPortInterface = unsafe.Pointer

IOFireWireIsochPortInterface is fireWire user client isochronous port interface.

See: https://developer.apple.com/documentation/iokit/iofirewireisochportinterface

type IOFireWireLibPHYPacketListenerInterface

type IOFireWireLibPHYPacketListenerInterface = unsafe.Pointer

IOFireWireLibPHYPacketListenerInterface is represents and provides management functions for a phy packet listener object.

See: https://developer.apple.com/documentation/iokit/iofirewirelibphypacketlistenerinterface

type IOFireWireLibVectorCommandInterface

type IOFireWireLibVectorCommandInterface = unsafe.Pointer

IOFireWireLibVectorCommandInterface is iOFireWireLib command object for grouping commands execution.

See: https://developer.apple.com/documentation/iokit/iofirewirelibvectorcommandinterface

type IOFireWireLocalIsochPortInterface

type IOFireWireLocalIsochPortInterface = unsafe.Pointer

IOFireWireLocalIsochPortInterface is fireWire user client local isochronous port object.

See: https://developer.apple.com/documentation/iokit/iofirewirelocalisochportinterface

type IOFireWireNuDCLPoolInterface

type IOFireWireNuDCLPoolInterface = unsafe.Pointer

IOFireWireNuDCLPoolInterface is use this interface to build NuDCL-based DCL programs.

See: https://developer.apple.com/documentation/iokit/iofirewirenudclpoolinterface

type IOFireWirePhysicalAddressSpaceInterface

type IOFireWirePhysicalAddressSpaceInterface = unsafe.Pointer

IOFireWirePhysicalAddressSpaceInterface is iOFireWireLib physical address space object. ( interface name: IOFireWirePhysicalAddressSpaceInterface ).

See: https://developer.apple.com/documentation/iokit/iofirewirephysicaladdressspaceinterface

type IOFireWireReadCommandInterface

type IOFireWireReadCommandInterface = unsafe.Pointer

IOFireWireReadCommandInterface is iOFireWireLib block read command object.

See: https://developer.apple.com/documentation/iokit/iofirewirereadcommandinterface

type IOFireWireReadQuadletCommandInterface

type IOFireWireReadQuadletCommandInterface = unsafe.Pointer

IOFireWireReadQuadletCommandInterface is iOFireWireReadQuadletCommandInterface -- IOFireWireLib quadlet read command object.

See: https://developer.apple.com/documentation/iokit/iofirewirereadquadletcommandinterface

type IOFireWireSBP2LibLUNInterface

type IOFireWireSBP2LibLUNInterface = unsafe.Pointer

IOFireWireSBP2LibLUNInterface is initial interface disovered for all drivers.

See: https://developer.apple.com/documentation/iokit/iofirewiresbp2libluninterface

type IOFireWireSBP2LibLoginInterface

type IOFireWireSBP2LibLoginInterface = unsafe.Pointer

IOFireWireSBP2LibLoginInterface is supplies the login maintenance and Normal Command ORB execution portions of the API.

See: https://developer.apple.com/documentation/iokit/iofirewiresbp2liblogininterface

type IOFireWireSBP2LibMgmtORBInterface

type IOFireWireSBP2LibMgmtORBInterface = unsafe.Pointer

IOFireWireSBP2LibMgmtORBInterface is supplies non login related management ORBs. Management ORBs can be executed independent of a login, if necessary. Management ORBs are created using the IOFireWireSBP2LibLUNInterface.

See: https://developer.apple.com/documentation/iokit/iofirewiresbp2libmgmtorbinterface

type IOFireWireSBP2LibORBInterface

type IOFireWireSBP2LibORBInterface = unsafe.Pointer

IOFireWireSBP2LibORBInterface is represents an SBP2 normal command ORB. Supplies the APIs for configuring normal command ORBs. This includes setting the command block and writing the page tables for I/O. The ORBs are executed using the submitORB method in IOFireWireSBP2LibLoginInterface.

See: https://developer.apple.com/documentation/iokit/iofirewiresbp2liborbinterface

type IOFireWireWriteCommandInterface

type IOFireWireWriteCommandInterface = unsafe.Pointer

IOFireWireWriteCommandInterface is iOFireWireLib block read command object.

See: https://developer.apple.com/documentation/iokit/iofirewirewritecommandinterface

type IOFireWireWriteQuadletCommandInterface

type IOFireWireWriteQuadletCommandInterface = unsafe.Pointer

IOFireWireWriteQuadletCommandInterface is iOFireWireLib quadlet read command object.

See: https://developer.apple.com/documentation/iokit/iofirewirewritequadletcommandinterface

type IOGraphicsEngineContext

type IOGraphicsEngineContext struct {
	Owner    unsafe.Pointer
	Reserved unsafe.Pointer
	State    unsafe.Pointer
	Version  unsafe.Pointer
}

IOGraphicsEngineContext

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/iokit/iographicsenginecontext

type IOHIDDeviceDeviceInterface

type IOHIDDeviceDeviceInterface = unsafe.Pointer

IOHIDDeviceDeviceInterface is the object you use to access HID devices from user space, returned by version 1.5 of the IOHIDFamily.

See: https://developer.apple.com/documentation/iokit/iohiddevicedeviceinterface

type IOHIDDeviceInterface

type IOHIDDeviceInterface = unsafe.Pointer

IOHIDDeviceInterface is cFPlugin object subclass which provides the primary interface to HID devices.

See: https://developer.apple.com/documentation/iokit/iohiddeviceinterface

type IOHIDDeviceInterface121

type IOHIDDeviceInterface121 = unsafe.Pointer

IOHIDDeviceInterface121 is cFPlugin object subclass which provides the primary interface to HID devices. This class is a subclass of IOHIDDeviceInterface.

See: https://developer.apple.com/documentation/iokit/iohiddeviceinterface121

type IOHIDDeviceInterface122

type IOHIDDeviceInterface122 = unsafe.Pointer

IOHIDDeviceInterface122 is cFPlugin object subclass which provides the primary interface to HID devices. This class is a subclass of IOHIDDeviceInterface121.

See: https://developer.apple.com/documentation/iokit/iohiddeviceinterface122

type IOHIDDeviceQueueInterface

type IOHIDDeviceQueueInterface = unsafe.Pointer

IOHIDDeviceQueueInterface is the object you use to access a HID queue from user space, returned by version 1.5 of the IOHIDFamily.

See: https://developer.apple.com/documentation/iokit/iohiddevicequeueinterface

type IOHIDDeviceRef

type IOHIDDeviceRef uintptr

See: https://developer.apple.com/documentation/iokit/iohiddeviceref

func IOHIDDeviceCreate

func IOHIDDeviceCreate(arg0 corefoundation.CFAllocatorRef, arg1 uintptr) IOHIDDeviceRef

IOHIDDeviceCreate creates an element from an io_service_t.

See: https://developer.apple.com/documentation/iokit/1588663-iohiddevicecreate

func IOHIDElementGetDevice

func IOHIDElementGetDevice(arg0 IOHIDElementRef) IOHIDDeviceRef

IOHIDElementGetDevice obtain the device associated with the element.

See: https://developer.apple.com/documentation/iokit/1564139-iohidelementgetdevice

func IOHIDQueueGetDevice

func IOHIDQueueGetDevice(arg0 IOHIDQueueRef) IOHIDDeviceRef

IOHIDQueueGetDevice obtain the device associated with the queue.

See: https://developer.apple.com/documentation/iokit/1545839-iohidqueuegetdevice

func IOHIDTransactionGetDevice

func IOHIDTransactionGetDevice(arg0 IOHIDTransactionRef) IOHIDDeviceRef

IOHIDTransactionGetDevice obtain the device associated with the transaction.

See: https://developer.apple.com/documentation/iokit/1561685-iohidtransactiongetdevice

type IOHIDDeviceTransactionInterface

type IOHIDDeviceTransactionInterface = unsafe.Pointer

IOHIDDeviceTransactionInterface is the object you use to access a HID transaction from user space, returned by version 1.5 of the IOHIDFamily.

See: https://developer.apple.com/documentation/iokit/iohiddevicetransactioninterface

type IOHIDElementCollectionType

type IOHIDElementCollectionType = unsafe.Pointer

IOHIDElementCollectionType is describes different types of HID collections.

See: https://developer.apple.com/documentation/iokit/iohidelementcollectiontype

func IOHIDElementGetCollectionType

func IOHIDElementGetCollectionType(arg0 IOHIDElementRef) IOHIDElementCollectionType

IOHIDElementGetCollectionType retrieves the collection type for the element.

See: https://developer.apple.com/documentation/iokit/1564132-iohidelementgetcollectiontype

type IOHIDElementCookie

type IOHIDElementCookie = uint32

IOHIDElementCookie is abstract data type used as a unique identifier for an element.

See: https://developer.apple.com/documentation/iokit/iohidelementcookie

func IOHIDElementGetCookie

func IOHIDElementGetCookie(arg0 IOHIDElementRef) IOHIDElementCookie

IOHIDElementGetCookie retrieves the cookie for the element.

See: https://developer.apple.com/documentation/iokit/1564124-iohidelementgetcookie

type IOHIDElementRef

type IOHIDElementRef uintptr

See: https://developer.apple.com/documentation/iokit/iohidelementref

func IOHIDElementCreateWithDictionary

func IOHIDElementCreateWithDictionary(arg0 corefoundation.CFAllocatorRef, arg1 corefoundation.CFDictionaryRef) IOHIDElementRef

IOHIDElementCreateWithDictionary creates an element from a dictionary.

See: https://developer.apple.com/documentation/iokit/1564115-iohidelementcreatewithdictionary

func IOHIDElementGetParent

func IOHIDElementGetParent(arg0 IOHIDElementRef) IOHIDElementRef

IOHIDElementGetParent returns the parent for the element.

See: https://developer.apple.com/documentation/iokit/1564144-iohidelementgetparent

func IOHIDValueGetElement

func IOHIDValueGetElement(arg0 IOHIDValueRef) IOHIDElementRef

IOHIDValueGetElement returns the element value associated with this IOHIDValueRef.

See: https://developer.apple.com/documentation/iokit/1433285-iohidvaluegetelement

type IOHIDElementType

type IOHIDElementType = unsafe.Pointer

IOHIDElementType is describes different types of HID elements.

See: https://developer.apple.com/documentation/iokit/iohidelementtype

func IOHIDElementGetType

func IOHIDElementGetType(arg0 IOHIDElementRef) IOHIDElementType

IOHIDElementGetType retrieves the type for the element.

See: https://developer.apple.com/documentation/iokit/1564135-iohidelementgettype

type IOHIDManagerOptions

type IOHIDManagerOptions = uint32

IOHIDManagerOptions is various options that can be supplied to IOHIDManager functions.

See: https://developer.apple.com/documentation/iokit/iohidmanageroptions

type IOHIDManagerRef

type IOHIDManagerRef uintptr

IOHIDManagerRef is this is the type of a reference to the IOHIDManager.

See: https://developer.apple.com/documentation/iokit/iohidmanagerref

func IOHIDManagerCreate

func IOHIDManagerCreate(arg0 corefoundation.CFAllocatorRef, arg1 uint32) IOHIDManagerRef

IOHIDManagerCreate creates an IOHIDManager object.

See: https://developer.apple.com/documentation/iokit/1438383-iohidmanagercreate

type IOHIDOptionsType

type IOHIDOptionsType = uint32

IOHIDOptionsType is options for opening a device via IOHIDLib.

See: https://developer.apple.com/documentation/iokit/iohidoptionstype

type IOHIDOutputTransactionInterface

type IOHIDOutputTransactionInterface = unsafe.Pointer

IOHIDOutputTransactionInterface is cFPlugin object subclass which privides interface for output transactions to HID devices. Created by a IOHIDDeviceInterface object.

See: https://developer.apple.com/documentation/iokit/iohidoutputtransactioninterface

type IOHIDQueueInterface

type IOHIDQueueInterface = unsafe.Pointer

IOHIDQueueInterface is cFPlugin object subclass which provides an interface for input queues from HID devices. Created by an IOHIDDeviceInterface object.

See: https://developer.apple.com/documentation/iokit/iohidqueueinterface

type IOHIDQueueOptionsType

type IOHIDQueueOptionsType = uint32

IOHIDQueueOptionsType is options for creating a queue via IOHIDLib.

See: https://developer.apple.com/documentation/iokit/iohidqueueoptionstype

type IOHIDQueueRef

type IOHIDQueueRef uintptr

See: https://developer.apple.com/documentation/iokit/iohidqueueref

func IOHIDQueueCreate

func IOHIDQueueCreate(arg0 corefoundation.CFAllocatorRef, arg1 IOHIDDeviceRef, arg2 int, arg3 uint32) IOHIDQueueRef

IOHIDQueueCreate creates an IOHIDQueue object for the specified device.

See: https://developer.apple.com/documentation/iokit/1545840-iohidqueuecreate

type IOHIDReportType

type IOHIDReportType = unsafe.Pointer

IOHIDReportType is describes different type of HID reports.

See: https://developer.apple.com/documentation/iokit/iohidreporttype

type IOHIDStandardType

type IOHIDStandardType = uint32

IOHIDStandardType is type to define what industrial standard the device is referencing.

See: https://developer.apple.com/documentation/iokit/iohidstandardtype

type IOHIDTransactionDirectionType

type IOHIDTransactionDirectionType = unsafe.Pointer

IOHIDTransactionDirectionType is direction for an IOHIDDeviceTransactionInterface.

See: https://developer.apple.com/documentation/iokit/iohidtransactiondirectiontype

func IOHIDTransactionGetDirection

func IOHIDTransactionGetDirection(arg0 IOHIDTransactionRef) IOHIDTransactionDirectionType

IOHIDTransactionGetDirection obtain the direction of the transaction.

See: https://developer.apple.com/documentation/iokit/1561674-iohidtransactiongetdirection

type IOHIDValueOptions

type IOHIDValueOptions = uint32

IOHIDValueOptions is describes options for gathering element values.

See: https://developer.apple.com/documentation/iokit/iohidvalueoptions

type IOHIDValueRef

type IOHIDValueRef uintptr

See: https://developer.apple.com/documentation/iokit/iohidvalueref

func IOHIDQueueCopyNextValue

func IOHIDQueueCopyNextValue(arg0 IOHIDQueueRef) IOHIDValueRef

IOHIDQueueCopyNextValue dequeues a retained copy of an element value from the head of an IOHIDQueue.

See: https://developer.apple.com/documentation/iokit/1545844-iohidqueuecopynextvalue

func IOHIDQueueCopyNextValueWithTimeout

func IOHIDQueueCopyNextValueWithTimeout(arg0 IOHIDQueueRef, arg1 float64) IOHIDValueRef

IOHIDQueueCopyNextValueWithTimeout dequeues a retained copy of an element value from the head of an IOHIDQueue.

See: https://developer.apple.com/documentation/iokit/1545832-iohidqueuecopynextvaluewithtimeo

func IOHIDTransactionGetValue

func IOHIDTransactionGetValue(arg0 IOHIDTransactionRef, arg1 IOHIDElementRef, arg2 uint32) IOHIDValueRef

IOHIDTransactionGetValue obtains the value for a transaction element.

See: https://developer.apple.com/documentation/iokit/1561683-iohidtransactiongetvalue

func IOHIDValueCreateWithBytes

func IOHIDValueCreateWithBytes(arg0 corefoundation.CFAllocatorRef, arg1 IOHIDElementRef, arg2 uint64, arg3 uint8, arg4 int) IOHIDValueRef

IOHIDValueCreateWithBytes creates a new element value using byte data.

See: https://developer.apple.com/documentation/iokit/1433290-iohidvaluecreatewithbytes

func IOHIDValueCreateWithBytesNoCopy

func IOHIDValueCreateWithBytesNoCopy(arg0 corefoundation.CFAllocatorRef, arg1 IOHIDElementRef, arg2 uint64, arg3 uint8, arg4 int) IOHIDValueRef

IOHIDValueCreateWithBytesNoCopy creates a new element value using byte data without performing a copy.

See: https://developer.apple.com/documentation/iokit/1433287-iohidvaluecreatewithbytesnocopy

func IOHIDValueCreateWithIntegerValue

func IOHIDValueCreateWithIntegerValue(arg0 corefoundation.CFAllocatorRef, arg1 IOHIDElementRef, arg2 uint64, arg3 int) IOHIDValueRef

IOHIDValueCreateWithIntegerValue creates a new element value using an integer value.

See: https://developer.apple.com/documentation/iokit/1433294-iohidvaluecreatewithintegervalue

type IOHIDValueScaleType

type IOHIDValueScaleType = uint32

IOHIDValueScaleType is describes different types of scaling that can be performed on element values.

See: https://developer.apple.com/documentation/iokit/iohidvaluescaletype

type IONamedValue

type IONamedValue struct {
	Value unsafe.Pointer
	Name  unsafe.Pointer
}

IONamedValue

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/iokit/ionamedvalue

type IONotificationPortRef

type IONotificationPortRef uintptr

See: https://developer.apple.com/documentation/iokit/ionotificationportref

func IONotificationPortCreate

func IONotificationPortCreate(mainPort uint32) IONotificationPortRef

IONotificationPortCreate creates and returns a notification object for receiving IOKit notifications of new devices or state changes.

See: https://developer.apple.com/documentation/iokit/1514480-ionotificationportcreate

type IOPMAssertionID

type IOPMAssertionID = uint32

IOPMAssertionID is type for AssertionID arguments to IOPMAssertionCreateWithProperties and IOPMAssertionRelease.

See: https://developer.apple.com/documentation/iokit/iopmassertionid

type IOPMAssertionLevel

type IOPMAssertionLevel = uint32

IOPMAssertionLevel is type for AssertionLevel argument to IOPMAssertionCreate.

See: https://developer.apple.com/documentation/iokit/iopmassertionlevel

type IOPMPowerFlags

type IOPMPowerFlags = uint

IOPMPowerFlags is bits are used in defining capabilityFlags, inputPowerRequirements, and outputPowerCharacter in the IOPMPowerState structure.

See: https://developer.apple.com/documentation/iokit/iopmpowerflags

type IOPMSystemCapabilityChangeParameters

type IOPMSystemCapabilityChangeParameters struct {
}

IOPMSystemCapabilityChangeParameters - A structure describing a system capability change.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/iokit/iopmsystemcapabilitychangeparameters

type IOPSLowBatteryWarningLevel

type IOPSLowBatteryWarningLevel = unsafe.Pointer

IOPSLowBatteryWarningLevel is the battery can provide no more than 10 minutes of runtime.

See: https://developer.apple.com/documentation/iokit/iopslowbatterywarninglevel

func IOPSGetBatteryWarningLevel

func IOPSGetBatteryWarningLevel() IOPSLowBatteryWarningLevel

IOPSGetBatteryWarningLevel indicates whether the system is at a low battery warning level.

See: https://developer.apple.com/documentation/iokit/1523851-iopsgetbatterywarninglevel

type IOPhysicalRange

type IOPhysicalRange struct {
	Address IOPhysicalAddress
	Length  uint
}

IOPhysicalRange

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/iokit/iophysicalrange

type IORPC

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

IORPC

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/iokit/iorpc

type IORPCMessage

type IORPCMessage struct {
	Flags      uint64
	Msgid      uint64
	ObjectRefs uint64
	Objects    unsafe.Pointer
}

IORPCMessage

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/iokit/iorpcmessage

type IORPCMessageErrorReturnContent

type IORPCMessageErrorReturnContent struct {
	Hdr    IORPCMessage
	Pad    uint32
	Result int32
}

IORPCMessageErrorReturnContent

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/iokit/iorpcmessageerrorreturncontent

type IORPCMessageMach

type IORPCMessageMach struct {
	Msgh      unsafe.Pointer
	Msgh_body unsafe.Pointer
	Objects   unsafe.Pointer
}

IORPCMessageMach

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/iokit/iorpcmessagemach

type IOServiceInterestCallback

type IOServiceInterestCallback = func(unsafe.Pointer, uintptr, uint32, unsafe.Pointer)

IOServiceInterestCallback is callback function to be notified of changes in state of an IOService.

See: https://developer.apple.com/documentation/iokit/ioserviceinterestcallback

type IOServiceInterestContent

type IOServiceInterestContent struct {
	MessageType     objectivec.IObject
	MessageArgument unsafe.Pointer
}

IOServiceInterestContent

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/iokit/ioserviceinterestcontent-ieh

type IOServiceMatchingCallback

type IOServiceMatchingCallback = func(unsafe.Pointer, uintptr)

IOServiceMatchingCallback is callback function to be notified of IOService publication.

See: https://developer.apple.com/documentation/iokit/ioservicematchingcallback

type IOStreamBufferQueue

type IOStreamBufferQueue struct {
	Queue    unsafe.Pointer // The array of queue entries.
	Reserved unsafe.Pointer // Reserved for future use.

}

IOStreamBufferQueue

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/iokit/iostreambufferqueue

type IOStreamBufferQueueEntry

type IOStreamBufferQueueEntry struct {
	Reserved unsafe.Pointer // Reserved for future use.

}

IOStreamBufferQueueEntry

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/iokit/iostreambufferqueueentry

type IOSystemLoadAdvisoryLevel

type IOSystemLoadAdvisoryLevel = int

IOSystemLoadAdvisoryLevel is return type for IOGetSystemLoadAdvisory.

See: https://developer.apple.com/documentation/iokit/iosystemloadadvisorylevel

func IOGetSystemLoadAdvisory

func IOGetSystemLoadAdvisory() IOSystemLoadAdvisoryLevel

IOGetSystemLoadAdvisory returns a hint about whether now would be a good time to perform time-insensitive work.

See: https://developer.apple.com/documentation/iokit/1557110-iogetsystemloadadvisory

type IOUPSPlugInInterface

type IOUPSPlugInInterface = unsafe.Pointer

IOUPSPlugInInterface is represents and provides management functions for a UPS device.

See: https://developer.apple.com/documentation/iokit/ioupsplugininterface

type IOURLError added in v0.5.1

type IOURLError int32

See: https://developer.apple.com/documentation/iokit/iourlerror

const (
	KIOURLImproperArgumentsError       IOURLError = 0
	KIOURLPropertyKeyUnavailableError  IOURLError = 0
	KIOURLRemoteHostUnavailableError   IOURLError = 0
	KIOURLResourceAccessViolationError IOURLError = 0
	KIOURLResourceNotFoundError        IOURLError = 0
	KIOURLTimeoutError                 IOURLError = 0
	KIOURLUnknownError                 IOURLError = 0
	KIOURLUnknownPropertyKeyError      IOURLError = 0
	KIOURLUnknownSchemeError           IOURLError = 0
)

func (IOURLError) String added in v0.5.1

func (e IOURLError) String() string

type IOUSBDeviceInterface

type IOUSBDeviceInterface = unsafe.Pointer

IOUSBDeviceInterface is the object you use to access USB devices from user space, returned by all versions of the IOUSBFamily currently shipping.

See: https://developer.apple.com/documentation/iokit/iousbdeviceinterface

type IOUSBDeviceInterface182

type IOUSBDeviceInterface182 = unsafe.Pointer

IOUSBDeviceInterface182 is the object you use to access USB devices from user space, returned by the IOUSBFamily version 1.8.2 and above.

See: https://developer.apple.com/documentation/iokit/iousbdeviceinterface182

type IOUSBDeviceInterface187

type IOUSBDeviceInterface187 = unsafe.Pointer

IOUSBDeviceInterface187 is the object you use to access USB devices from user space, returned by the IOUSBFamily version 10.8.7 and above.

See: https://developer.apple.com/documentation/iokit/iousbdeviceinterface187

type IOUSBDeviceInterface197

type IOUSBDeviceInterface197 = unsafe.Pointer

IOUSBDeviceInterface197 is the object you use to access USB devices from user space, returned by the IOUSBFamily version 1.9.7 and above.

See: https://developer.apple.com/documentation/iokit/iousbdeviceinterface197

type IOUSBDeviceInterface245

type IOUSBDeviceInterface245 = unsafe.Pointer

IOUSBDeviceInterface245 is the object you use to access USB devices from user space, returned by the IOUSBFamily version 2.4.5 and above.

See: https://developer.apple.com/documentation/iokit/iousbdeviceinterface245

type IOUSBDeviceInterface300

type IOUSBDeviceInterface300 = unsafe.Pointer

IOUSBDeviceInterface300 is the object you use to access USB devices from user space, returned by the IOUSBFamily version 3.0.0 and above.

See: https://developer.apple.com/documentation/iokit/iousbdeviceinterface300

type IOUSBDeviceInterface320

type IOUSBDeviceInterface320 = unsafe.Pointer

IOUSBDeviceInterface320 is the object you use to access USB devices from user space, returned by the IOUSBFamily version 3.2.0 and above.

See: https://developer.apple.com/documentation/iokit/iousbdeviceinterface320

type IOUSBDeviceInterface500

type IOUSBDeviceInterface500 = unsafe.Pointer

IOUSBDeviceInterface500 is the object you use to access USB devices from user space, returned by the IOUSBFamily version 3.2.0 and above.

See: https://developer.apple.com/documentation/iokit/iousbdeviceinterface500

type IOUSBInterfaceInterface

type IOUSBInterfaceInterface = unsafe.Pointer

IOUSBInterfaceInterface is the object you use to access a USB device interface from user space, returned by all versions of the IOUSBFamily currently shipping.

See: https://developer.apple.com/documentation/iokit/iousbinterfaceinterface

type IOUSBInterfaceInterface182

type IOUSBInterfaceInterface182 = unsafe.Pointer

IOUSBInterfaceInterface182 is the object you use to access a USB device interface from user space, returned by the IOUSBFamily version 1.8.2 and above.

See: https://developer.apple.com/documentation/iokit/iousbinterfaceinterface182

type IOUSBInterfaceInterface183

type IOUSBInterfaceInterface183 = unsafe.Pointer

IOUSBInterfaceInterface183 is the object you use to access a USB device interface from user space, returned by the IOUSBFamily version 1.8.3 and above.

See: https://developer.apple.com/documentation/iokit/iousbinterfaceinterface183

type IOUSBInterfaceInterface190

type IOUSBInterfaceInterface190 = unsafe.Pointer

IOUSBInterfaceInterface190 is the object you use to access a USB device interface from user space, returned by the IOUSBFamily version 1.9 and above.

See: https://developer.apple.com/documentation/iokit/iousbinterfaceinterface190

type IOUSBInterfaceInterface192

type IOUSBInterfaceInterface192 = unsafe.Pointer

IOUSBInterfaceInterface192 is the object you use to access a USB device interface from user space, returned by the IOUSBFamily version 1.9.2 and above.

See: https://developer.apple.com/documentation/iokit/iousbinterfaceinterface192

type IOUSBInterfaceInterface197

type IOUSBInterfaceInterface197 = unsafe.Pointer

IOUSBInterfaceInterface197 is the object you use to access a USB device interface from user space, returned by the IOUSBFamily version 1.9.7 and above.

See: https://developer.apple.com/documentation/iokit/iousbinterfaceinterface197

type IOVideoDeviceInterface_v1_t

type IOVideoDeviceInterface_v1_t = unsafe.Pointer

IOVideoDeviceInterface_v1_t is forward declaration of IOVideoDeviceInterface_v1_t.

See: https://developer.apple.com/documentation/iokit/iovideodeviceinterface_v1_t

type IOVirtualRange

type IOVirtualRange struct {
	Address IOVirtualAddress
	Length  uint
}

IOVirtualRange

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/iokit/iovirtualrange

type KDisplayVendorID added in v0.5.1

type KDisplayVendorID uint
const (
	KDisplayVendorIDUnknown KDisplayVendorID = 0
)

func (KDisplayVendorID) String added in v0.5.1

func (e KDisplayVendorID) String() string

type KFirstIOKitNotificationType

type KFirstIOKitNotificationType uint
const (
	KFirstIOKitNotificationTypeValue     KFirstIOKitNotificationType = 100
	KIOAsyncCompletionNotificationType   KFirstIOKitNotificationType = 150
	KIOKitNoticationMsgSizeMask          KFirstIOKitNotificationType = 3
	KIOKitNoticationTypeMask             KFirstIOKitNotificationType = 4095
	KIOKitNoticationTypeSizeAdjShift     KFirstIOKitNotificationType = 30
	KIOServiceMatchedNotificationType    KFirstIOKitNotificationType = 101
	KIOServiceMessageNotificationType    KFirstIOKitNotificationType = 160
	KIOServicePublishNotificationType    KFirstIOKitNotificationType = 100
	KIOServiceTerminatedNotificationType KFirstIOKitNotificationType = 102
	KLastIOKitNotificationType           KFirstIOKitNotificationType = 199
)

func (KFirstIOKitNotificationType) String

type KIO

type KIO uint
const (
	KIOAsyncCalloutCount           KIO = 3
	KIOAsyncCalloutFuncIndex       KIO = 1
	KIOAsyncCalloutRefconIndex     KIO = 2
	KIOAsyncReservedCount          KIO = 1
	KIOAsyncReservedIndex          KIO = 0
	KIOCopybackCache               KIO = 3
	KIOCopybackInnerCache          KIO = 5
	KIODefaultCache                KIO = 0
	KIOInhibitCache                KIO = 1
	KIOInterestCalloutCount        KIO = 4
	KIOInterestCalloutFuncIndex    KIO = 1
	KIOInterestCalloutRefconIndex  KIO = 2
	KIOInterestCalloutServiceIndex KIO = 3
	KIOMatchingCalloutCount        KIO = 3
	KIOMatchingCalloutFuncIndex    KIO = 1
	KIOMatchingCalloutRefconIndex  KIO = 2
	KIOWriteCombineCache           KIO = 4
	KIOWriteThruCache              KIO = 2
)

func (KIO) String

func (e KIO) String() string

type KIOMap

type KIOMap uint
const (
	KIOMapAnywhere           KIOMap = 1
	KIOMapCacheMask          KIOMap = 3840
	KIOMapCacheShift         KIOMap = 8
	KIOMapCopybackCache      KIOMap = 3
	KIOMapCopybackInnerCache KIOMap = 5
	KIOMapDefaultCache       KIOMap = 0
	KIOMapInhibitCache       KIOMap = 1
	KIOMapOverwrite          KIOMap = 536870912
	KIOMapPrefault           KIOMap = 268435456
	KIOMapReadOnly           KIOMap = 4096
	KIOMapReference          KIOMap = 33554432
	KIOMapStatic             KIOMap = 16777216
	KIOMapUnique             KIOMap = 67108864
	KIOMapUserOptionsMask    KIOMap = 4095
	KIOMapWriteCombineCache  KIOMap = 4
	KIOMapWriteThruCache     KIOMap = 2
)

func (KIOMap) String

func (e KIOMap) String() string

type KIORegistryIterate

type KIORegistryIterate uint
const (
	KIORegistryIterateParents     KIORegistryIterate = 2
	KIORegistryIterateRecursively KIORegistryIterate = 1
)

func (KIORegistryIterate) String

func (e KIORegistryIterate) String() string

type KNanosecondScale

type KNanosecondScale uint
const (
	// KMicrosecondScale: # Discussion
	KMicrosecondScale KNanosecondScale = 1000
	// KMillisecondScale: # Discussion
	KMillisecondScale KNanosecondScale = 0
	// KNanosecondScaleValue: # Discussion
	KNanosecondScaleValue KNanosecondScale = 1
	// KSecondScale: # Discussion
	KSecondScale KNanosecondScale = 0
	// KTickScale: # Discussion
	KTickScale KNanosecondScale = 0
)

func (KNanosecondScale) String

func (e KNanosecondScale) String() string

type KOSAsyncRef

type KOSAsyncRef uint
const (
	KOSAsyncRefCount KOSAsyncRef = 8
	KOSAsyncRefSize  KOSAsyncRef = 32
)

func (KOSAsyncRef) String

func (e KOSAsyncRef) String() string

type KOSAsyncRef64

type KOSAsyncRef64 uint
const (
	KOSAsyncRef64Count KOSAsyncRef64 = 8
	KOSAsyncRef64Size  KOSAsyncRef64 = 8
)

func (KOSAsyncRef64) String

func (e KOSAsyncRef64) String() string

type KOSNotificationMessageID

type KOSNotificationMessageID uint
const (
	KMaxAsyncArgs                 KOSNotificationMessageID = 16
	KOSAsyncCompleteMessageID     KOSNotificationMessageID = 57
	KOSNotificationMessageIDValue KOSNotificationMessageID = 53
)

func (KOSNotificationMessageID) String

func (e KOSNotificationMessageID) String() string

type MMCDeviceInterface

type MMCDeviceInterface = unsafe.Pointer

MMCDeviceInterface is basic interface for an MMC-2 Compliant Device.

See: https://developer.apple.com/documentation/iokit/mmcdeviceinterface

type NXEventHandle

type NXEventHandle = uint32

See: https://developer.apple.com/documentation/iokit/nxeventhandle

func NXOpenEventStatus deprecated

func NXOpenEventStatus() NXEventHandle

NXOpenEventStatus.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1574517-nxopeneventstatus

type NXEventSystemInfoType

type NXEventSystemInfoType = int

See: https://developer.apple.com/documentation/iokit/nxeventsysteminfotype

func NXEventSystemInfo deprecated

func NXEventSystemInfo(arg0 NXEventHandle, arg1 int8, arg2 int, arg3 uint) NXEventSystemInfoType

NXEventSystemInfo.

Deprecated: Deprecated since macOS 10.12.

See: https://developer.apple.com/documentation/iokit/1574527-nxeventsysteminfo

type OSNotificationHeader

type OSNotificationHeader struct {
	Size      uint32
	Type      objectivec.IObject
	Reference unsafe.Pointer
	Content   unsafe.Pointer
}

OSNotificationHeader

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/iokit/osnotificationheader-iei

type SCSIDeviceIdentifier

type SCSIDeviceIdentifier = uint64

SCSIDeviceIdentifier is 64-bit number to represent a SCSI Device.

See: https://developer.apple.com/documentation/iokit/scsideviceidentifier

type SCSIInitiatorIdentifier

type SCSIInitiatorIdentifier = string

SCSIInitiatorIdentifier is 64-bit number to represent a SCSI Initiator Device.

See: https://developer.apple.com/documentation/iokit/scsiinitiatoridentifier

type SCSIServiceResponse

type SCSIServiceResponse = unsafe.Pointer

SCSIServiceResponse is attributes for task service response.

See: https://developer.apple.com/documentation/iokit/scsiserviceresponse

type SCSITaggedTaskIdentifier

type SCSITaggedTaskIdentifier = uint64

SCSITaggedTaskIdentifier is 64-bit number to represent a unique task identifier.

See: https://developer.apple.com/documentation/iokit/scsitaggedtaskidentifier

type SCSITargetIdentifier

type SCSITargetIdentifier = string

SCSITargetIdentifier is 64-bit number to represent a SCSI Target Device.

See: https://developer.apple.com/documentation/iokit/scsitargetidentifier

type SCSITaskAttribute

type SCSITaskAttribute = unsafe.Pointer

SCSITaskAttribute is attributes for task delivery.

See: https://developer.apple.com/documentation/iokit/scsitaskattribute

type SCSITaskDeviceInterface

type SCSITaskDeviceInterface = unsafe.Pointer

SCSITaskDeviceInterface is basic interface for a SCSITask Device.

See: https://developer.apple.com/documentation/iokit/scsitaskdeviceinterface

type SCSITaskInterface

type SCSITaskInterface = unsafe.Pointer

SCSITaskInterface is basic interface for a SCSITask.

See: https://developer.apple.com/documentation/iokit/scsitaskinterface

type SCSITaskState

type SCSITaskState = unsafe.Pointer

SCSITaskState is attributes for task state.

See: https://developer.apple.com/documentation/iokit/scsitaskstate

type SCSITaskStatus

type SCSITaskStatus = unsafe.Pointer

SCSITaskStatus is attributes for task status.

See: https://developer.apple.com/documentation/iokit/scsitaskstatus

type VDGamRecPtr

type VDGamRecPtr = unsafe.Pointer

VDGamRecPtr is represents a type used by the Video Components API.

See: https://developer.apple.com/documentation/iokit/vdgamrecptr

Jump to

Keyboard shortcuts

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