Skip to content
BSD syscall#513

svc · unix #513

__channel_get_opt

Gets a per-channel Skywalk option such as ring slot count or interrupt-coalescing parameters.

Prototype

int __channel_get_opt(int c, uint32_t opt, void *aoptval, uint32_t *aoptlen);

Returns: int

Arguments

NameTypeDirDescription
cint-
optuint32_t-
aoptvalvoid-
aoptlenuint32_t-

Version history

XNU tagmacOS#
xnu-8792.41.9macOS 13.0 Ventura513
xnu-10002.1.13macOS 14.0 Sonoma513
xnu-11215.1.10macOS 15.0 Sequoia513
xnu-11417.101.15macOS 15.4 Sequoia513
xnu-12377.1.9macOS 26.0 Tahoe513
xnu-10002.41.9513
xnu-10002.61.3513
xnu-10002.81.5513
xnu-10063.101.15513
xnu-10063.121.3513
xnu-10063.141.1513
xnu-11215.41.3513
xnu-11215.61.5513
xnu-11215.81.4513
xnu-11417.121.6513
xnu-11417.140.69513
xnu-12377.101.15513
xnu-12377.41.6513
xnu-12377.61.12513
xnu-12377.81.4513
xnu-8019.80.24513
xnu-8020.101.4513
xnu-8020.121.3513
xnu-8020.140.41513
xnu-8792.61.2513
xnu-8792.81.2513
xnu-8796.101.5513
xnu-8796.121.2513
xnu-8796.141.3513

Notes

Mirror of getsockopt for the Skywalk world. Options live in the SK_OPT_* namespace and cover scheduling class, packet pool sizing, and channel events (idle, defunct, low-power). Used during connection setup to negotiate a configuration compatible with the underlying nexus capabilities.

Detection

Not security-relevant in isolation; pairs with __channel_set_opt for full traceability of channel configuration changes.

Related APIs

__channel_set_opt__channel_get_info__channel_opengetsockopt