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.9—508
xnu-10002.61.3—508
xnu-10002.81.5—508
xnu-10063.101.15—508
xnu-10063.121.3—508
xnu-10063.141.1—508
xnu-11215.41.3—508
xnu-11215.61.5—508
xnu-11215.81.4—508
xnu-11417.121.6—508
xnu-11417.140.69—508
xnu-12377.101.15—508
xnu-12377.41.6—508
xnu-12377.61.12—508
xnu-12377.81.4—508
xnu-8019.80.24—508
xnu-8020.101.4—508
xnu-8020.121.3—508
xnu-8020.140.41—508
xnu-8792.61.2—508
xnu-8792.81.2—508
xnu-8796.101.5—508
xnu-8796.121.2—508
xnu-8796.141.3—508

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