usb_get_dr_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– usb_get_dr_mode(9) β€” Kernel API Manual πŸ’–

okay bestie, welcome to the usb_get_dr_mode(9) page from the Kernel API Manual ✨ this one is short and sweet, and we’re keeping every detail, no cap.


🌸 NAME 🌸

usb_get_dr_mode β€” get dual role mode for given device πŸ’…

✨ SYNOPSIS ✨

enum usb_dr_mode usb_get_dr_mode (struct device *dev );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” pointer to the given device 🫢

πŸ’… DESCRIPTION πŸ’…

The function gets the phy interface string from the property 'dr_mode', and returns the corresponding enum usb_dr_mode 🌈

🌈 SEE ALSO 🌈

  • Kernel file ./include/linux/usb/otg.h, and struct usb_otg_caps(9) πŸ¦‹

source/version check, bestie: ./include/linux/usb, dated October 2026 πŸŽ€ that’s the whole page β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from