ENUM USB4_MARGIN_SW_ERROR_COUNTER(9)
π enum usb4_margin_sw_error_counter(9) β Kernel API Manual π¦
okay so bestie, welcome to the Kernel API Manual, and lemme tell you about this little enum called enum usb4_margin_sw_error_counter β it's literally the Software margining error counter operation, and it's giving "small but mighty" energy β¨
πΈ NAME πΈ
enum usb4_margin_sw_error_counter β Software margining error counter operation π
β¨ SYNOPSIS β¨
Like, here's the whole vibe, verbatim, no cap:
enum usb4_margin_sw_error_counter {
USB4_MARGIN_SW_ERROR_COUNTER_NOP ,
USB4_MARGIN_SW_ERROR_COUNTER_CLEAR ,
USB4_MARGIN_SW_ERROR_COUNTER_START ,
USB4_MARGIN_SW_ERROR_COUNTER_STOP
};
π§ Constants π§
Four constants, four moods, all of them iconic π
USB4_MARGIN_SW_ERROR_COUNTER_NOPβ No change in counter setup. literally just vibing, touching nothing, main character energy of doing absolutely nothing πUSB4_MARGIN_SW_ERROR_COUNTER_CLEARβ Set the error counter to 0, enable counter. fresh start bestie, we're resetting the whole thing AND turning it on πUSB4_MARGIN_SW_ERROR_COUNTER_STARTβ Start counter, count from last value. it picks up right where it left off, no resetting, we respect the journey π«ΆUSB4_MARGIN_SW_ERROR_COUNTER_STOPβ Stop counter, do not clear value. pause the count but keep the receipts, the number stays π₯
π SEE ALSO π
Kernel file ./drivers/thunderbolt/tb.h β and honestly the whole friend group showed up, here's the full roll call π:
struct tb_nvm(9)enum tb_switch_tmu_mode(9)struct tb_switch_tmu(9)struct tb_switch(9)struct tb_bandwidth_group(9)struct tb_port(9)struct usb4_port(9)struct tb_retimer(9)struct tb_path_hop(9)enum tb_path_port(9)struct tb_path(9)struct tb_cm_ops(9)tb_upstream_port(9)tb_is_upstream_port(9)tb_port_has_remote(9)tb_domain_event(9)tb_switch_for_each_port(9)tb_switch_downstream_port(9)tb_switch_depth(9)tb_switch_is_icm(9)tb_switch_tmu_is_configured(9)tb_switch_tmu_is_enabled(9)tb_switch_clx_is_enabled(9)tb_port_path_direction_downstream(9)tb_for_each_port_on_path(9)tb_for_each_upstream_port_on_path(9)tb_path_for_each_hop(9)tb_downstream_route(9)tb_xdomain_downstream_port(9)usb4_switch_version(9)tb_switch_is_usb4(9)enum usb4_sb_target(9)struct usb4_port_margining_params(9)
bestie note: every single one of those is a (9) kernel-API page, so if you're lost in the thunderbolt headers, you're in good company π«Ά
k that's the page!! this one lives in ./drivers/thunderbolt, dated October 2026, and the whole thing is filed under enum usb4_m...rror_counter(9) in the Kernel API Manual β slay, go read the source, 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