usb4_port_margining_caps(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… usb4_port_margining_caps(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” this is the page for usb4_port_margining_caps(9), and honestly? she's a little icon. let's get into it πŸŽ€


✨ NAME ✨

usb4_port_margining_caps β€” Read USB4 port margining capabilities πŸ¦‹


🌸 SYNOPSIS 🌸

int usb4_port_margining_caps (struct tb_port *port , enum usb4_sb_target
target , u8 index , u32 *caps , size_t ncaps );

like, that's the whole vibe. five arguments, one int coming back at you πŸ’œ


πŸ“ ARGUMENTS πŸ“

  • port β€” the USB4 port, obvi. this is your main character 🌟
  • target β€” the sideband target πŸ‘€
  • index β€” the retimer index, but ONLY if target is USB4_SB_TARGET_RETIMER ⚠️ otherwise it's not doing that job, bestie
  • caps β€” an array with at least two elements where the results get parked πŸ…ΏοΈβœ¨
  • ncaps β€” how many elements are actually chillin' in the caps array πŸ”’

πŸ’– DESCRIPTION πŸ’–

Reads the USB4 port lane margining capabilities into caps.

that's it, that's the whole paragraph. short and slays πŸ’… no cap.


πŸ”₯ RETURN πŸ”₯

0 on success, negative errno otherwise 😭 (so like, if you see something negative, that's a no from her fr fr)


πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./drivers/thunderbolt/usb4.c β€” go read her, iykyk πŸ“–

and then the whole group chat of siblings, all of them (9):

like… that is a LOT of siblings and every one of them is invited to the party πŸ«ΆπŸŽ‰


πŸ’€ real talk though: the index argument only means anything when target is USB4_SB_TARGET_RETIMER. don't be out here passing a retimer index for a non-retimer target, that's not the move πŸ™ˆ

and that's the page, bestie!! 🌈⭐ this lil beauty comes to you from ./drivers/thunderbolt and she's dated October 2026 β€” put that in your calendar πŸ—“οΈπŸ’œ mwah, go read a kernel file, ily 🧚✨

πŸ“¦ where this page comes from