Skip to content
BSD syscall#509

svc · unix #509

__nexus_set_opt

Writes a provider- or instance-level Skywalk option to tune behavior such as packet-pool size.

Prototype

int __nexus_set_opt(int ctl, uint32_t opt, const void *aoptval, uint32_t optlen);

Returns: int

Arguments

NameTypeDirDescription
ctlint-
optuint32_t-
aoptvalconst void-
optlenuint32_t-

Version history

XNU tagmacOS#
xnu-8792.41.9macOS 13.0 Ventura509
xnu-10002.1.13macOS 14.0 Sonoma509
xnu-11215.1.10macOS 15.0 Sequoia509
xnu-11417.101.15macOS 15.4 Sequoia509
xnu-12377.1.9macOS 26.0 Tahoe509
xnu-10002.41.9509
xnu-10002.61.3509
xnu-10002.81.5509
xnu-10063.101.15509
xnu-10063.121.3509
xnu-10063.141.1509
xnu-11215.41.3509
xnu-11215.61.5509
xnu-11215.81.4509
xnu-11417.121.6509
xnu-11417.140.69509
xnu-12377.101.15509
xnu-12377.41.6509
xnu-12377.61.12509
xnu-12377.81.4509
xnu-8019.80.24509
xnu-8020.101.4509
xnu-8020.121.3509
xnu-8020.140.41509
xnu-8792.61.2509
xnu-8792.81.2509
xnu-8796.101.5509
xnu-8796.121.2509
xnu-8796.141.3509

Notes

Knobs include NXOPT_MEMORY_REGION sizing, NXOPT_QUIESCE (drain the instance), NXOPT_IFNET (bind to a network interface), and NXOPT_LLINK (set link-layer attributes). Mostly used at instance setup; runtime mutation often requires the instance to be quiesced or returns EBUSY.

Detection

Entitlement-gated. ES is silent; anomalous use must be inferred from the calling process identity.

Related APIs

__nexus_get_opt__nexus_create__nexus_register__channel_set_opt