usb_get_role...default_mode(9)
π usb_get_role...default_mode(9) π
welcome to the Kernel API Manual, bestie β this page is the whole vibe check for usb_get_role_switch_default_mode, and ngl it's giving βtiny helper, big USB energyβ β¨ no cap.
β¨ NAME β¨
usb_get_role_switch_default_mode β get the default mode for a given device π
π¦ SYNOPSIS π¦
enum usb_dr_mode usb_get_role_switch_default_mode (struct device *dev );
π ARGUMENTS π
devβ pointer to the given device π«Ά literally the device we're asking about, fr fr.
π DESCRIPTION π
okay so the function gets a string from the property 'role-switch-default-mode', and returns the corresponding enum usb_dr_mode. that's it, that's the whole main character moment π
no secret side quests, no extra lore.
π SEE ALSO π
the kernel file is literally ./drivers/usb/common/common.c β that's where this lives, iykyk π¦
usb_ep_type_string(9)usb_otg_state_string(9)usb_speed_string(9)usb_get_maximum_speed(9)usb_get_maximum_ssp_rate(9)usb_state_string(9)usb_get_dr_mode_from_string(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)
mwah π β this page comes from ./drivers/usb/common, dated October 2026, and yeah, it's still usb_get_role...default_mode(9) π«Άβ¨
π¦ 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