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