usb_add_phy_dev(9)
β¨ usb_add_phy_dev(9) β¨
okay so we're in the Kernel API Manual today bestie, and the star of the show is usb_add_phy_dev β say hi π
π NAME π
usb_add_phy_dev β declare the USB PHY. that's it, that's the whole vibe. you're announcing it to the world π
π¦ SYNOPSIS π¦
int usb_add_phy_dev (struct usb_phy *x );
π ARGUMENTS π
xβ the USB phy to be used; orNULL. yes bestie,NULLis a legit option here, no cap π
π DESCRIPTION π
so this call is exclusively for use by phy drivers β like, it is not for everybody, it's giving VIP section only π₯
and what do those phy drivers do, you ask? they coordinate the activities of drivers for host and peripheral controllers. and in some cases? they handle VBUS current regulation too. very main character energy, very "i contain multitudes" π
πΈ SEE ALSO πΈ
- Kernel file
./drivers/usb/phy/phy.cπ (the whole file, iconic) usb_phy_notify_charger_work(9)usb_phy_get_charger_type(9)usb_phy_set_charger_current(9)usb_phy_get_charger_current(9)usb_phy_set_charger_state(9)devm_usb_get_phy(9)usb_get_phy(9)devm_usb_get_phy_by_node(9)devm_usb_get_phy_by_phandle(9)usb_put_phy(9)usb_add_phy(9)usb_remove_phy(9)usb_phy_set_event(9)
like a whole friend group honestly, go read them all, iykyk π«Ά
ngl the (9) on every single one of these is so consistent of them. love that for us. periodt. β
and that's the page!! mwah π sign-off time: this one lives in ./drivers/usb/phy, dated October 2026 β catch you in the kernel tree bestie π§ββοΈπ
π¦ 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