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
| Name | Type | Dir | Description |
|---|---|---|---|
| ctl | int | - | |
| opt | uint32_t | - | |
| aoptval | const void | - | |
| optlen | uint32_t | - |
Version history
| XNU tag | macOS | # |
|---|---|---|
| xnu-8792.41.9 | macOS 13.0 Ventura | 509 |
| xnu-10002.1.13 | macOS 14.0 Sonoma | 509 |
| xnu-11215.1.10 | macOS 15.0 Sequoia | 509 |
| xnu-11417.101.15 | macOS 15.4 Sequoia | 509 |
| xnu-12377.1.9 | macOS 26.0 Tahoe | 509 |
| xnu-10002.41.9 | — | 509 |
| xnu-10002.61.3 | — | 509 |
| xnu-10002.81.5 | — | 509 |
| xnu-10063.101.15 | — | 509 |
| xnu-10063.121.3 | — | 509 |
| xnu-10063.141.1 | — | 509 |
| xnu-11215.41.3 | — | 509 |
| xnu-11215.61.5 | — | 509 |
| xnu-11215.81.4 | — | 509 |
| xnu-11417.121.6 | — | 509 |
| xnu-11417.140.69 | — | 509 |
| xnu-12377.101.15 | — | 509 |
| xnu-12377.41.6 | — | 509 |
| xnu-12377.61.12 | — | 509 |
| xnu-12377.81.4 | — | 509 |
| xnu-8019.80.24 | — | 509 |
| xnu-8020.101.4 | — | 509 |
| xnu-8020.121.3 | — | 509 |
| xnu-8020.140.41 | — | 509 |
| xnu-8792.61.2 | — | 509 |
| xnu-8792.81.2 | — | 509 |
| xnu-8796.101.5 | — | 509 |
| xnu-8796.121.2 | — | 509 |
| xnu-8796.141.3 | — | 509 |
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