#include <IOKit/IOKitDebug.h>
IOKit/IOKitDebug.h Kernel.framework
__cplusplus
9 enums · 5 macros · 4 variables · 3 functions · 2 typedefs · 2 structs
underlying type unsigned long
| kIOLogAttach | 1 | loggage |
| kIOLogProbe | 2 | |
| kIOLogStart | 4 | |
| kIOLogRegister | 8 | |
| kIOLogMatch | 16 | |
| kIOLogConfig | 32 | |
| kIOLogYield | 64 | |
| kIOLogPower | 128 | |
| kIOLogMapping | 256 | |
| kIOLogCatalogue | 512 | |
| kIOLogTracePower | 1024 | Obsolete: Use iotrace=0x00000400ULL to enable now |
| kIOLogDebugPower | 2048 | |
| kIOLogServiceTree | 4096 | |
| kIOLogDTree | 8192 | |
| kIOLogMemory | 16384 | |
| kIOLogKextMemory | 32768 | |
| kOSLogRegistryMods | 65536 | Log attempts to modify registry collections |
| kIOLogPMRootDomain | 131072 | |
| kOSRegistryModsMode | 262144 | Change default registry modification handling - panic vs. log |
| kIOLogHibernate | 1048576 | kIOTraceIOService = 0x00080000ULL, // Obsolete: Use iotrace=0x00080000ULL to enable now |
| kIOStatistics | 67108864 | |
| kIOSleepWakeWdogOff | 1073741824 | |
| kIOKextSpinDump | 2147483648 | |
| kIONoFreeObjects | 1048576 | debug aids - change behaviour |
| kIOTracking | 4194304 | kIOLogSynchronous = 0x00200000ULL, // IOLog completes synchronously -- obsolete |
| kIOWaitQuietPanics | 8388608 | |
| kIOWaitQuietBeforeRoot | 16777216 | |
| kIOTrackingBoot | 33554432 | |
| kIOLogExclaves | 4294967296 | |
| _kIODebugTopFlag | 9223372036854775808 | force enum to be 64 bits |
underlying type unsigned long
| kIOKitDebugUserOptions | 7526092799 | |
underlying type unsigned int
| kIOTraceInterrupts | 1 | Trace primary interrupts |
| kIOTraceWorkLoops | 2 | Trace workloop activity |
| kIOTraceEventSources | 4 | Trace non-passive event sources |
| kIOTraceIntEventSource | 8 | Trace IOIES and IOFIES sources |
| kIOTraceCommandGates | 16 | Trace command gate activity |
| kIOTraceTimers | 32 | Trace timer event source activity |
| kIOTracePowerMgmt | 1024 | Trace power management changes |
| kIOTraceIOService | 524288 | registerService/termination |
| kIOTraceCompatBootArgs | 525312 | |
underlying type unsigned int
| kIODKEnable | 1 | |
| kIODKLogSetup | 2 | |
| kIODKLogIPC | 4 | |
| kIODKLogPM | 8 | |
| kIODKLogMessages | 16 | |
| kIODKDisablePM | 256 | |
| kIODKDisableDextLaunch | 4096 | |
| kIODKDisableDextTag | 8192 | |
| kIODKDisableCDHashChecking | 16384 | |
| kIODKDisableEntitlementChecking | 32768 | |
| kIODKDisableCheckInTokenVerification | 65536 | |
| kIODKDisableIOPMSystemOffPhase2Allow | 131072 | |
extern void IOPrintPlane(
const IORegistryPlane * plane const struct IORegistryPlane * plane
)
▾
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu iokit/Kernel/IOKitDebug.cpp
Debugging aid; logs the contents of a registry plane with IOLog. Prints the total entry count, then each entry recursively, indented by depth: name, location, class name, and for IOService objects the busy state.
extern void OSPrintMemory(void)
▾
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu libkern/c++/OSCPPDebug.cpp
Prints libkern/IOKit memory-debugging statistics: per-class instance counts via OSMetaClass::printInstanceCounts, followed by the accumulated debug counters for instance-variable kalloc, malloc, container kalloc, and IOMalloc allocations (
debug_ivars_size,
debug_malloc_size,
debug_container_malloc_size,
debug_iomalloc_size), written with IOLog. The counters are maintained only when OSALLOCDEBUG accounting is compiled in.
kern_return_t IOSetCoreAnalyticsSendEventProc(IOCoreAnalyticsSendEventProc proc)
▾
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu iokit/Kernel/IOService.cpp
Registers the kernel-wide callback through which IOKit submits CoreAnalytics events. The procedure may be installed only once; returns kIOReturnNotPermitted if one is already registered, otherwise stores proc and returns kIOReturnSuccess.
#define kIOKitDiagnosticsClientClassName "IOKitDiagnosticsClient"
underlying type unsigned int
| kIOKitDiagnosticsClientType | 2566914050 | |
size 64, align 8
| size_t | size | |
| uint64_t | value | |
| uint32_t | options | |
| uint32_t | tag | |
| uint32_t | zsize | |
| uint32_t[8] | reserved | |
typedef struct IOKitDiagnosticsParameters IOKitDiagnosticsParameters
underlying type unsigned int
#define kIOMallocTrackingName "IOMalloc"
#define kIOWireTrackingName "IOWire"
#define kIOMapTrackingName "IOMap"
underlying type unsigned int
| kIOTrackingLeakScanStart | 1 | |
| kIOTrackingLeakScanEnd | 2 | |
extern void (*gIOTrackingLeakScanCallback)(uint32_t notification)
underlying type unsigned int
underlying type unsigned int
| kIOTrackingGetTracking | 1 | |
| kIOTrackingGetMappings | 2 | |
| kIOTrackingResetTracking | 3 | |
| kIOTrackingStartCapture | 4 | |
| kIOTrackingStopCapture | 5 | |
| kIOTrackingSetMinCaptureSize | 6 | |
| kIOTrackingLeaks | 7 | |
| kIOTrackingInvalid | 4294967294 | |