tb_ring_throttling(9)
β¨ tb_ring_throttling(9) β¨
okay so bestie, welcome to section 9 of the kernel API manual, and today's main character lives in ./drivers/thunderbolt β yes the Thunderbolt directory, we love her π
π NAME π
tb_ring_throttling β configure throttling for ring interrupt π¦
β SYNOPSIS β
int tb_ring_throttling(struct tb_ring *ring, unsigned int interval_nsec);
πΈ ARGUMENTS πΈ
ringβ the ring you wanna configure, periodt πinterval_nsecβ the interval counter for moderation, measured in ns, and0disables it entirely. like, zero means off, no cap π
π₯ DESCRIPTION π₯
So this one enables or disables ring interrupt throttling β literally that's the whole vibe check π«Ά
β οΈ the ring must be stopped before you call this. not paused, not "kinda done", stopped. the way that it will not work otherwise π
Granularity is 256 ns. mmkay? that's the resolution you're working with, so don't come at her with 100 ns and expect precision π
π RETURN π
0on success β slay, we ate π- negative
errnootherwise β not slay, something went sideways π
π SEE ALSO π
Kernel file ./drivers/thunderbolt/nhi.c, plus the whole friend group:
tb_ring_poll(9)tb_ring_poll_complete(9)tb_ring_alloc_tx(9)tb_ring_alloc_rx(9)tb_ring_start(9)tb_ring_flush(9)tb_ring_stop(9)nhi_mailbox_cmd(9)nhi_mailbox_mode(9)
and that's the page, bestie β¨ sign-off time: this lil masterpiece comes from ./drivers/thunderbolt, dated October 2026, and it's filed under tb_ring_throttling(9). mwah ππ§ββοΈ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms