Skip to content
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

NameTypeDirDescription
cint-
cinfostruct ch_info-
cinfolenuint32_t-

Version history

XNU tagmacOS#
xnu-8792.41.9macOS 13.0 Ventura511
xnu-10002.1.13macOS 14.0 Sonoma511
xnu-11215.1.10macOS 15.0 Sequoia511
xnu-11417.101.15macOS 15.4 Sequoia511
xnu-12377.1.9macOS 26.0 Tahoe511
xnu-10002.41.9511
xnu-10002.61.3511
xnu-10002.81.5511
xnu-10063.101.15511
xnu-10063.121.3511
xnu-10063.141.1511
xnu-11215.41.3511
xnu-11215.61.5511
xnu-11215.81.4511
xnu-11417.121.6511
xnu-11417.140.69511
xnu-12377.101.15511
xnu-12377.41.6511
xnu-12377.61.12511
xnu-12377.81.4511
xnu-8019.80.24511
xnu-8020.101.4511
xnu-8020.121.3511
xnu-8020.140.41511
xnu-8792.61.2511
xnu-8792.81.2511
xnu-8796.101.5511
xnu-8796.121.2511
xnu-8796.141.3511

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