#include <IOKit/stream/IOStreamShared.h>
IOKit/stream/IOStreamShared.h Kernel.framework @header IOStreamShared.h
IOStream definitions shared between kernel and user space.
6 enums · 2 typedefs · 2 structs · 1 macro
Buffer numbers are guaranteed to go from 0 to bufferCount - 1.
@typedef IOStreamBufferID
typedef UInt32 IOStreamBufferID #define kIOStreamBufferIDInvalid (~0) @enum Memory mapping types
@constant kIOStreamMemoryTypeOutputQueue
@constant kIOStreamMemoryTypeInputQueue
@constant kIOStreamMemoryTypeBufferData
@constant kIOStreamMemoryTypeBufferControl
@constant kIOStreamBufferIDMask
@constant kIOStreamMemoryTypeMask
@abstract Memory types used with IOConnectMapMemory().
@discussion
underlying type unsigned int
kIOStreamMemoryTypeOutputQueue 268435456 kIOStreamMemoryTypeInputQueue 536870912 kIOStreamMemoryTypeBufferData 805306368 kIOStreamMemoryTypeBufferControl 1073741824 kIOStreamBufferIDMask 268435455 kIOStreamMemoryTypeMask 4026531840
@enum Mach port types
@constant kIOStreamPortTypeOutput
@constant kIOStreamPortTypeInput
@abstract Port types used with IOConnectSetNotificationPort().
@discussion
underlying type unsigned int
kIOStreamPortTypeOutput 0 kIOStreamPortTypeInput 1
underlying type unsigned int
kIOStreamOptionOpenExclusive 65536 kIOStreamOptionOpenShared 131072
@enum User client methods
@constant kIOStreamMethodOpen
@constant kIOStreamMethodClose
@constant kIOStreamMethodStart
@constant kIOStreamMethodStop
@constant kIOStreamMethodSuspend
@constant kIOStreamMethodGetMode
@constant kIOStreamMethodSetMode
@abstract Client method numbers used with IOConnectMethod...() functions.
@discussion
underlying type unsigned int
kIOStreamMethodOpen 0 kIOStreamMethodClose 1 kIOStreamMethodStart 2 kIOStreamMethodStop 3 kIOStreamMethodSuspend 4 kIOStreamMethodGetMode 5 kIOStreamMethodSetMode 6 kIOStreamMethodGetBufferCount 7
@enum User client traps
@constant kIOStreamEnqueueInputTrap
@constant kIOStreamEnqueueInputSyncTrap
@abstract Client trap numbers used with IOConnectTrap..() functions.
@discussion
underlying type unsigned int
kIOStreamEnqueueInputTrap 0 kIOStreamEnqueueInputSyncTrap 1
underlying type unsigned int
kIOStreamModeInput 0 From user to kernel space kIOStreamModeOutput 1 From kernel to user space kIOStreamModeInputOutput 2 bidirectional
typedef enum IOStreamMode IOStreamMode; Generated 2026-09-08 from the headers of one specific machine (macOS 26.4.1, SDK 26.4, arm64) — not official documentation. About & caveats