#include <IOKit/IOTimeStamp.h>

IOKit/IOTimeStamp.h Kernel.framework

includes: sys/kdebug.h
91 macros · 4 functions

macroIOKIT_IOTIMESTAMP_H

#define IOKIT_IOTIMESTAMP_H 

functionIOTimeStampStartConstant

static inline void IOTimeStampStartConstant(
	unsigned int csc,
	uintptr_t a = 0,
	uintptr_t b = 0,
	uintptr_t c = 0,
	uintptr_t d = 0
)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu iokit/IOKit/IOTimeStamp.h (inline)
Emits a kdebug interval-start tracepoint: KERNEL_DEBUG_CONSTANT with debug code csc | DBG_FUNC_START and arguments a, b, c, d. csc is a class/subclass/code constant, typically built with the IODBG_* macros over the DBG_IOKIT class. Compiled into all kernel configurations; a no-op at run time unless kernel tracing is enabled.

functionIOTimeStampEndConstant

static inline void IOTimeStampEndConstant(
	uintptr_t csc,
	uintptr_t a = 0,
	uintptr_t b = 0,
	uintptr_t c = 0,
	uintptr_t d = 0
)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu iokit/IOKit/IOTimeStamp.h (inline)
Emits a kdebug interval-end tracepoint: KERNEL_DEBUG_CONSTANT with debug code csc | DBG_FUNC_END and arguments a, b, c, d; pairs with IOTimeStampStartConstant. Compiled into all kernel configurations; a no-op unless kernel tracing is enabled.

functionIOTimeStampConstant

static inline void IOTimeStampConstant(
	uintptr_t csc,
	uintptr_t a = 0,
	uintptr_t b = 0,
	uintptr_t c = 0,
	uintptr_t d = 0
)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu iokit/IOKit/IOTimeStamp.h (inline)
Emits a standalone kdebug tracepoint: KERNEL_DEBUG_CONSTANT with debug code csc | DBG_FUNC_NONE and arguments a, b, c, d. Compiled into all kernel configurations; a no-op unless kernel tracing is enabled.

functionIOTimeStampConstantFiltered

static inline void IOTimeStampConstantFiltered(
	uintptr_t csc,
	uintptr_t a = 0,
	uintptr_t b = 0,
	uintptr_t c = 0,
	uintptr_t d = 0
)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu iokit/IOKit/IOTimeStamp.h (inline)
Emits a standalone kdebug tracepoint through KERNEL_DEBUG_CONSTANT_FILTERED, so the event is suppressed when tracing runs in filtered (reduced) mode. Debug code is csc | DBG_FUNC_NONE with arguments a, b, c, d.

macroIODBG_STORAGE

#define IODBG_STORAGE(code) (KDBG_CODE(DBG_IOKIT, DBG_IOSTORAGE, code))

macroIODBG_NETWORK

#define IODBG_NETWORK(code) (KDBG_CODE(DBG_IOKIT, DBG_IONETWORK, code))

macroIODBG_KEYBOARD

#define IODBG_KEYBOARD(code) (KDBG_CODE(DBG_IOKIT, DBG_IOKEYBOARD, code))

macroIODBG_HID

#define IODBG_HID(code) (KDBG_CODE(DBG_IOKIT, DBG_IOHID, code))

macroIODBG_AUDIO

#define IODBG_AUDIO(code) (KDBG_CODE(DBG_IOKIT, DBG_IOAUDIO, code))

macroIODBG_SERIAL

#define IODBG_SERIAL(code) (KDBG_CODE(DBG_IOKIT, DBG_IOSERIAL, code))

macroIODBG_TTY

#define IODBG_TTY(code) (KDBG_CODE(DBG_IOKIT, DBG_IOTTY, code))

macroIODBG_SAM

#define IODBG_SAM(code) (KDBG_CODE(DBG_IOKIT, DBG_IOSAM, code))

macroIODBG_PARALLELATA

#define IODBG_PARALLELATA(code) (KDBG_CODE(DBG_IOKIT, DBG_IOPARALLELATA, code))

macroIODBG_PARALLELSCSI

#define IODBG_PARALLELSCSI(code) (KDBG_CODE(DBG_IOKIT, DBG_IOPARALLELSCSI, code))

macroIODBG_SATA

#define IODBG_SATA(code) (KDBG_CODE(DBG_IOKIT, DBG_IOSATA, code))

macroIODBG_SAS

#define IODBG_SAS(code) (KDBG_CODE(DBG_IOKIT, DBG_IOSAS, code))

macroIODBG_FIBRECHANNEL

#define IODBG_FIBRECHANNEL(code) (KDBG_CODE(DBG_IOKIT, DBG_IOFIBRECHANNEL, code))

macroIODBG_USB

#define IODBG_USB(code) (KDBG_CODE(DBG_IOKIT, DBG_IOUSB, code))

macroIODBG_BLUETOOTH

#define IODBG_BLUETOOTH(code) (KDBG_CODE(DBG_IOKIT, DBG_IOBLUETOOTH, code))

macroIODBG_FIREWIRE

#define IODBG_FIREWIRE(code) (KDBG_CODE(DBG_IOKIT, DBG_IOFIREWIRE, code))

macroIODBG_INFINIBAND

#define IODBG_INFINIBAND(code) (KDBG_CODE(DBG_IOKIT, DBG_IOINFINIBAND, code))

macroIODBG_DISK

Backwards compatibility
#define IODBG_DISK(code) IODBG_STORAGE(code)

macroIODBG_POINTING

#define IODBG_POINTING(code) IODBG_HID(code)

macroIODBG_INTC

IOKit infrastructure subclasses
#define IODBG_INTC(code) (KDBG_CODE(DBG_IOKIT, DBG_IOINTC, code))

macroIODBG_WORKLOOP

#define IODBG_WORKLOOP(code) (KDBG_CODE(DBG_IOKIT, DBG_IOWORKLOOP, code))

macroIODBG_INTES

#define IODBG_INTES(code) (KDBG_CODE(DBG_IOKIT, DBG_IOINTES, code))

macroIODBG_TIMES

#define IODBG_TIMES(code) (KDBG_CODE(DBG_IOKIT, DBG_IOCLKES, code))

macroIODBG_CMDQ

#define IODBG_CMDQ(code) (KDBG_CODE(DBG_IOKIT, DBG_IOCMDQ, code))

macroIODBG_MCURS

#define IODBG_MCURS(code) (KDBG_CODE(DBG_IOKIT, DBG_IOMCURS, code))

macroIODBG_MDESC

#define IODBG_MDESC(code) (KDBG_CODE(DBG_IOKIT, DBG_IOMDESC, code))

macroIODBG_POWER

#define IODBG_POWER(code) (KDBG_CODE(DBG_IOKIT, DBG_IOPOWER, code))

macroIODBG_IOSERVICE

#define IODBG_IOSERVICE(code) (KDBG_CODE(DBG_IOKIT, DBG_IOSERVICE, code))

macroIODBG_IOREGISTRY

#define IODBG_IOREGISTRY(code) (KDBG_CODE(DBG_IOKIT, DBG_IOREGISTRY, code))

macroIODBG_IOMDPA

#define IODBG_IOMDPA(code) (KDBG_CODE(DBG_IOKIT, DBG_IOMDPA, code))

macroIOINTC_HANDLER

#define IOINTC_HANDLER 1
0x05000004

macroIOINTC_SPURIOUS

#define IOINTC_SPURIOUS 2
0x05000008

macroIOWL_CLIENT

#define IOWL_CLIENT 1
0x05010004

macroIOWL_WORK

#define IOWL_WORK 2
0x05010008

macroIOINTES_CLIENT

#define IOINTES_CLIENT 1
0x05020004

macroIOINTES_LAT

#define IOINTES_LAT 2
0x05020008

macroIOINTES_SEMA

#define IOINTES_SEMA 3
0x0502000c

macroIOINTES_INTCTXT

#define IOINTES_INTCTXT 4
0x05020010

macroIOINTES_INTFLTR

#define IOINTES_INTFLTR 5
0x05020014

macroIOINTES_ACTION

#define IOINTES_ACTION 6
0x05020018

macroIOINTES_FILTER

#define IOINTES_FILTER 7
0x0502001c

macroIOTIMES_CLIENT

DBG_IOKIT/DBG_IOTIMES codes
#define IOTIMES_CLIENT 1
0x05030004

macroIOTIMES_LAT

#define IOTIMES_LAT 2
0x05030008

macroIOTIMES_SEMA

#define IOTIMES_SEMA 3
0x0503000c

macroIOTIMES_ACTION

#define IOTIMES_ACTION 4
0x05030010

macroIOCMDQ_CLIENT

#define IOCMDQ_CLIENT 1
0x05040004

macroIOCMDQ_LAT

#define IOCMDQ_LAT 2
0x05040008

macroIOCMDQ_SEMA

#define IOCMDQ_SEMA 3
0x0504000c

macroIOCMDQ_PSEMA

#define IOCMDQ_PSEMA 4
0x05040010

macroIOCMDQ_PLOCK

#define IOCMDQ_PLOCK 5
0x05040014

macroIOCMDQ_ACTION

#define IOCMDQ_ACTION 6
0x05040018

macroIOMDESC_WIRE

#define IOMDESC_WIRE 1
0x05060004

macroIOMDESC_PREPARE

#define IOMDESC_PREPARE 2
0x05060008

macroIOMDESC_MAP

#define IOMDESC_MAP 3
0x0506000C

macroIOMDESC_UNMAP

#define IOMDESC_UNMAP 4
0x05060010

macroIOMDESC_DMA_MAP

#define IOMDESC_DMA_MAP 5
0x05060014

macroIOMDESC_DMA_UNMAP

#define IOMDESC_DMA_UNMAP 6
0x05060018

macroIOMDESC_COMPLETE

#define IOMDESC_COMPLETE 7
0x0506001C

macroIOMDPA_MAPPED

#define IOMDPA_MAPPED 1
0x05410004

macroIOMDPA_UNMAPPED

#define IOMDPA_UNMAPPED 2
0x05410008

macroIOMDPA_SEGMENTS_PAGE

#define IOMDPA_SEGMENTS_PAGE 3
0x0541000C

macroIOMDPA_SEGMENTS_LONG

#define IOMDPA_SEGMENTS_LONG 4
0x05410010

macroIOSERVICE_BUSY

#define IOSERVICE_BUSY 1
0x05080004

macroIOSERVICE_NONBUSY

#define IOSERVICE_NONBUSY 2
0x05080008

macroIOSERVICE_MODULESTALL

#define IOSERVICE_MODULESTALL 3
0x0508000C

macroIOSERVICE_MODULEUNSTALL

#define IOSERVICE_MODULEUNSTALL 4
0x05080010

macroIOSERVICE_TERMINATE_PHASE1

#define IOSERVICE_TERMINATE_PHASE1 5
0x05080014

macroIOSERVICE_TERMINATE_REQUEST_OK

#define IOSERVICE_TERMINATE_REQUEST_OK 6
0x05080018

macroIOSERVICE_TERMINATE_REQUEST_FAIL

#define IOSERVICE_TERMINATE_REQUEST_FAIL 7
0x0508001C

macroIOSERVICE_TERMINATE_SCHEDULE_STOP

#define IOSERVICE_TERMINATE_SCHEDULE_STOP 8
0x05080020

macroIOSERVICE_TERMINATE_SCHEDULE_FINALIZE

#define IOSERVICE_TERMINATE_SCHEDULE_FINALIZE 9
0x05080024

macroIOSERVICE_TERMINATE_WILL

#define IOSERVICE_TERMINATE_WILL 10
0x05080028

macroIOSERVICE_TERMINATE_DID

#define IOSERVICE_TERMINATE_DID 11
0x0508002C

macroIOSERVICE_TERMINATE_DID_DEFER

#define IOSERVICE_TERMINATE_DID_DEFER 12
0x05080030

macroIOSERVICE_TERMINATE_FINALIZE

#define IOSERVICE_TERMINATE_FINALIZE 13
0x05080034

macroIOSERVICE_TERMINATE_STOP

#define IOSERVICE_TERMINATE_STOP 14
0x05080038

macroIOSERVICE_TERMINATE_STOP_NOP

#define IOSERVICE_TERMINATE_STOP_NOP 15
0x0508003C

macroIOSERVICE_TERMINATE_STOP_DEFER

#define IOSERVICE_TERMINATE_STOP_DEFER 16
0x05080040

macroIOSERVICE_TERMINATE_DONE

#define IOSERVICE_TERMINATE_DONE 17
0x05080044

macroIOSERVICE_KEXTD_ALIVE

#define IOSERVICE_KEXTD_ALIVE 18
0x05080048

macroIOSERVICE_KEXTD_READY

#define IOSERVICE_KEXTD_READY 19
0x0508004C

macroIOSERVICE_REGISTRY_QUIET

#define IOSERVICE_REGISTRY_QUIET 20
0x05080050

macroIOSERVICE_TERM_SET_INACTIVE

#define IOSERVICE_TERM_SET_INACTIVE 21
0x05080054

macroIOSERVICE_TERM_SCHED_PHASE2

#define IOSERVICE_TERM_SCHED_PHASE2 22
0x05080058

macroIOSERVICE_TERM_START_PHASE2

#define IOSERVICE_TERM_START_PHASE2 23
0x0508005C

macroIOSERVICE_TERM_TRY_PHASE2

#define IOSERVICE_TERM_TRY_PHASE2 24
0x05080060

macroIOSERVICE_TERM_UC_DEFER

#define IOSERVICE_TERM_UC_DEFER 25
0x05080064

macroIOSERVICE_DETACH

#define IOSERVICE_DETACH 26
0x05080068

macroIOREGISTRYENTRY_NAME_STRING

#define IOREGISTRYENTRY_NAME_STRING 1
0x05090004

macroIOREGISTRYENTRY_NAME

#define IOREGISTRYENTRY_NAME 2
0x05090008