of_usb_get_phy_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– of_usb_get_phy_mode(9) πŸ’–

okay so bestie, welcome to the of_usb_get_phy_mode(9) page in the Kernel API Manual β€” it's giving very specific kernel-helper energy and we're obsessed. ✨ The whole vibe? Get the phy mode for a given device_node, no cap.


🌸 NAME 🌸

of_usb_get_phy_mode β€” get the phy mode for a given device_node πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

enum usb_phy_interface of_usb_get_phy_mode (struct device_node *np );

πŸŽ€ ARGUMENTS πŸŽ€

  • np β€” a pointer to the given device_node, literally the thing you're handing over 🫢

πŸ’… DESCRIPTION πŸ’…

So here's the tea: the function gets the phy interface string from the 'phy_type' property, and then it returns the corresponding enum usb_phy_interface. That's it, that's the whole main-character moment. πŸ’–

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/usb/phy/of.c β€” that's the file to peek at, iykyk 🧚

mwah πŸ’‹ the footer's source/version slot says ./drivers/usb/phy, dated October 2026, and yes bestie that's the cute little sign-off, periodt. 🌈

πŸ“¦ where this page comes from