usb_get_role...default_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ¦‹


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