Skip to content
BSD syscall#508

svc · unix #508

__nexus_get_opt

Reads a provider- or instance-level Skywalk option from a nexus controller.

Prototype

int __nexus_get_opt(int ctl, uint32_t opt, void *aoptval, uint32_t *aoptlen);

Returns: int

Arguments

NameTypeDirDescription
ctlint-
optuint32_t-
aoptvalvoid-
aoptlenuint32_t-

Version history

XNU tagmacOS#
xnu-8792.41.9macOS 13.0 Ventura508
xnu-10002.1.13macOS 14.0 Sonoma508
xnu-11215.1.10macOS 15.0 Sequoia508
xnu-11417.101.15macOS 15.4 Sequoia508
xnu-12377.1.9macOS 26.0 Tahoe508
xnu-10002.41.9508
xnu-10002.61.3508
xnu-10002.81.5508
xnu-10063.101.15508
xnu-10063.121.3508
xnu-10063.141.1508
xnu-11215.41.3508
xnu-11215.61.5508
xnu-11215.81.4508
xnu-11417.121.6508
xnu-11417.140.69508
xnu-12377.101.15508
xnu-12377.41.6508
xnu-12377.61.12508
xnu-12377.81.4508
xnu-8019.80.24508
xnu-8020.101.4508
xnu-8020.121.3508
xnu-8020.140.41508
xnu-8792.61.2508
xnu-8792.81.2508
xnu-8796.101.5508
xnu-8796.121.2508
xnu-8796.141.3508

Notes

Used by nettop and Apple's diagnostic tooling to query packet-pool sizes, statistics counters (NXOPT_STATS), flow advisories, and per-instance memory accounting. The option namespace is NXOPT_*; numeric values mirror the corresponding __nexus_set_opt knobs.

Detection

Read-only; not relevant for ES. Pair with __nexus_set_opt audits to detect tampering.

Related APIs

__nexus_set_opt__nexus_open__nexus_create__channel_get_opt