of_usb_get_phy_mode(9)
π 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 givendevice_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
- 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