tb_port_clear_counter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tb_port_clear_counter πŸ’…

okay bestie, welcome to the Kernel API Manual entry for tb_port_clear_counter β€” the tiny icon whose whole job is clearing a counter in TB_CFG_COUNTER. no cap, it’s giving β€œone counter, one glow-up.” ✨


🌸 NAME 🌸

tb_port_clear_counter β€” clear a counter in TB_CFG_COUNTER


πŸ¦‹ SYNOPSIS πŸ¦‹

int tb_port_clear_counter (struct tb_port *port , int counter );

πŸŽ€ ARGUMENTS πŸŽ€

  • port β€” the port whose counters you’re clearing. like, this is the main character port πŸ’…
  • counter β€” the index of the counter you’re clearing. point at the one, clear the one 🫢

⭐ RETURN ⭐

0 on success, negative errno otherwise. that’s it, that’s the vibe check πŸ’–


🌈 SEE ALSO 🌈

Kernel file ./drivers/thunderbolt/switch.c β€” and the whole friend group:


mwah πŸ’‹ β€” source/version: ./drivers/thunderbolt; date: October 2026; page: tb_port_clear_counter(9). byeee 🫢

πŸ“¦ where this page comes from