get_port_ssp_rate(9)
β¨ 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 hereext_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:
usb_hub_set_port_power(9)usb_hub_clear_tt_buffer(9)usb_remove_device(9)usb_set_device_state(9)usb_disconnect(9)usb_enumerate_device_otg(9)usb_enumerate_device(9)usb_new_device(9)usb_deauthorize_device(9)usb_root_hub_lost_power(9)hub_hc_release_resources(9)usb_reset_and_verify_device(9)usb_reset_device(9)usb_queue_reset_device(9)usb_hub_find_child(9)usb_get_hub_port_acpi_handle(9)
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
- 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