BSD syscall#511
svc · unix #511
__channel_get_info
Returns runtime information about a Skywalk channel: ring counts, buffer geometry, statistics.
Prototype
int __channel_get_info(int c, struct ch_info *cinfo, uint32_t cinfolen);Returns: int
Arguments
| Name | Type | Dir | Description |
|---|---|---|---|
| c | int | - | |
| cinfo | struct ch_info | - | |
| cinfolen | uint32_t | - |
Version history
| XNU tag | macOS | # |
|---|---|---|
| xnu-8792.41.9 | macOS 13.0 Ventura | 511 |
| xnu-10002.1.13 | macOS 14.0 Sonoma | 511 |
| xnu-11215.1.10 | macOS 15.0 Sequoia | 511 |
| xnu-11417.101.15 | macOS 15.4 Sequoia | 511 |
| xnu-12377.1.9 | macOS 26.0 Tahoe | 511 |
| xnu-10002.41.9 | — | 511 |
| xnu-10002.61.3 | — | 511 |
| xnu-10002.81.5 | — | 511 |
| xnu-10063.101.15 | — | 511 |
| xnu-10063.121.3 | — | 511 |
| xnu-10063.141.1 | — | 511 |
| xnu-11215.41.3 | — | 511 |
| xnu-11215.61.5 | — | 511 |
| xnu-11215.81.4 | — | 511 |
| xnu-11417.121.6 | — | 511 |
| xnu-11417.140.69 | — | 511 |
| xnu-12377.101.15 | — | 511 |
| xnu-12377.41.6 | — | 511 |
| xnu-12377.61.12 | — | 511 |
| xnu-12377.81.4 | — | 511 |
| xnu-8019.80.24 | — | 511 |
| xnu-8020.101.4 | — | 511 |
| xnu-8020.121.3 | — | 511 |
| xnu-8020.140.41 | — | 511 |
| xnu-8792.61.2 | — | 511 |
| xnu-8792.81.2 | — | 511 |
| xnu-8796.101.5 | — | 511 |
| xnu-8796.121.2 | — | 511 |
| xnu-8796.141.3 | — | 511 |
Notes
Used by nettop -m skywalk and by Apple's internal sk_diag tool. The returned struct describes how many rx/tx rings the channel exposes, the slot size, and counters for drops, alloc failures, and link-level errors. Callers typically poll this to verify backpressure when sendmsg_x throughput drops.
Detection
Read-only; not exposed to ES. Out-of-band telemetry comes from `sysctl kern.skywalk` and the netdiag.framework.
Related APIs
__channel_open__channel_get_opt__channel_set_opt__nexus_get_opt