get_port_ssp_rate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ get_port_ssp_rate β€” the manual page bestie πŸ’…

okay so real talk, this is get_port_ssp_rate from the Kernel API Manual, and honestly? she's a little lookup function with main character energy πŸ‘‘


πŸŽ€ NAME πŸŽ€

get_port_ssp_rate β€” match the extended port status to the SSP rate, no cap 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

enum usb_ssp_rate get_port_ssp_rate (struct usb_device *hdev , u32
ext_portstatus );

like literally that's the whole signature, copy it exactly pls, i'm not about to let you typo it πŸ™ˆ


πŸ’– ARGUMENTS πŸ’–

  • hdev β€” the hub device 🫢 like, the actual hub we're talking about here
  • ext_portstatus β€” the extended port status ✨ yes that whole u32 of it

πŸ”₯ DESCRIPTION πŸ”₯

so basically the vibe check here is: take that extended port status speed id and match it up against the SuperSpeed Plus sublink speed capability attributes πŸ’«

then, based on the number of connected lanes and the speed, she returns the corresponding enum usb_ssp_rate β€” that's it, that's the whole job, and she ate πŸ‘‘

ngl the original even says "Base on" instead of "Based on" and i love that for her, icon energy, we keep the lore 🧚

🌈 SEE ALSO 🌈

kernel file ./drivers/usb/core/hub.c and also bestie the whole friend group:

like, the whole squad, all of them, no one left behind 🫢✨


signed, sealed, delivered πŸŽ€ this little page lives in ./drivers/usb/core and it's dated October 2026 β€” same footer energy as get_port_ssp_rate(9) herself, periodt πŸ’…πŸ’œ

πŸ“¦ where this page comes from