usb4_port_hw_margin(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… usb4_port_hw_margin(9) β€” Kernel API Manual, bestie edition ✨

okay so welcome to the Kernel API Manual corner where the manual name is literally usb4_port_hw_margin(9), and this page is all about running hardware lane margining on a port. No cap, every detail stays. 🫢

🌸 NAME 🌸

usb4_port_hw_margin β€” Run hardware lane margining on port πŸ’–


✨ SYNOPSIS ✨

int usb4_port_hw_margin (struct tb_port *port , enum usb4_sb_target
target , u8 index , const struct usb4_port_margining_params *params ,
u32 *results , size_t nresults );

πŸŽ€ ARGUMENTS πŸŽ€

  • port β€” USB4 port
  • target β€” Sideband target
  • index β€” Retimer index if target is USB4_SB_TARGET_RETIMER
  • params β€” Parameters for USB4 hardware margining
  • results β€” Array to hold the results
  • nresults β€” Number of elements in the results array

πŸ’« DESCRIPTION πŸ’«

Runs hardware lane margining on USB4 port and returns the result in results. That is the vibe, that is the job, and honestly? Iconic. ✨

πŸ”₯ RETURN πŸ”₯

Returns 0 on success, negative errno otherwise. So: 0 = slay, negative errno = not the slay. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/thunderbolt/usb4.c β€” and then go peek at all these besties:


okay bye bestie β€” this page lives in ./drivers/thunderbolt, dated October 2026, and answers to usb4_port_hw_margin(9) πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from