usb_get_maximum_ssp_rate(9)
π usb_get_maximum_ssp_rate(9)
okay bestie, welcome to the Kernel API Manual β yes, the big one. this page is all about usb_get_maximum_ssp_rate(9), and no cap it's a little niche but it's also kind of iconic once you get it. let's go π
β¨ NAME β¨
usb_get_maximum_ssp_rate β get the signaling rate generation and the lane count of a device that's SuperSpeed Plus capable π¦
like, both things. at once. she's efficient.
πΈ SYNOPSIS πΈ
enum usb_ssp_rate usb_get_maximum_ssp_rate (struct device *dev );
one function, one argument, returns an enum usb_ssp_rate. clean. minimal. main character energy π₯
π ARGUMENTS π
devβ pointer to the given USB controller device π that's it, that's the whole input.
π« DESCRIPTION π«
so here's the vibe: if the string that comes from the "maximum-speed" property is shaped like super-speed-plus-genXxY β you know the format, gen-something, times-something β then the function returns the corresponding enum usb_ssp_rate. slay. that's literally it. β¨
gen and lane count, matched up and handed back to you as an enum. iykyk π
π SEE ALSO π
kernel file ./drivers/usb/common/common.c β and honestly the whole friend group:
usb_ep_type_string(9)usb_otg_state_string(9)usb_speed_string(9)usb_get_maximum_speed(9)usb_state_string(9)usb_get_dr_mode_from_string(9)usb_get_role_switch_default_mode(9)usb_decode_interval(9)of_usb_get_dr_mode_by_phy(9)of_usb_host_tpl_support(9)of_usb_update_otg_caps(9)usb_of_get_companion_dev(9)
all twelve of them, no skips, go read 'em π«Ά
π reminder bestie: the source lives under ./drivers/usb/common, this is the Kernel API Manual, and the page is dated October 2026. that's the whole footer, folded in cute-style so nothing gets lost. 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