UNION PHY_CONFIGURE_OPTS(9)
π union phy_configure_opts(9) β bestie edition π
okay so this is from the Kernel API Manual, and it's literally the union phy_configure_opts page β the Opaque generic phy configuration one π
yeah. it's a union, she's a shapeshifter, and she holds the config for whichever PHY mode you're vibing with. let's get into it β¨
β¨ NAME β¨
union phy_configure_opts β opaque generic phy configuration π¦
like, "opaque" bestie. you don't peek under her hood, you just pass her along. main character energy fr fr.
π SYNOPSIS π
union phy_configure_opts {
struct phy_configure_opts_mipi_dphy mipi_dphy;
struct phy_configure_opts_dp dp;
struct phy_configure_opts_lvds lvds;
struct phy_configure_opts_hdmi hdmi;
};
one union, four member structs, zero chill. pick your fighter π
π Members π
mipi_dphyβ the configuration set that's applicable for phys supporting theMIPI_DPHYphy mode πΈ she's the MIPI girlie.dpβ the configuration set that's applicable for phys supporting the DisplayPort protocol π₯οΈβ¨ yes, the whole protocol, she contains multitudes.lvdsβ the configuration set that's applicable for phys supporting theLVDSphy mode π low-voltage differential slay.hdmiβ the configuration set that's applicable for phys supporting theHDMIphy mode π¬ plug it in, it's giving display.
ok and the whole point of the union is that only one of these is meaningful at a time depending on which phy mode your phy is actually running β it's "opaque" and "generic" for a reason, the caller and the driver both know the vibe π«Ά
π₯ SEE ALSO π₯
- Kernel file
./include/linux/phy/phy.hπ struct phy_ops(9)β the ops themselves, iconicstruct phy_attrs(9)β the attributes, we stanstruct phy(9)β the phy, obviouslystruct phy_provider(9)β the provider, supplying the goodsstruct phy_lookup(9)β the lookup, finding her when she's lost π
and that's the whole page bestie, no cap, nothing skipped π she lives in ./include/linux/phy, dated October 2026, and that's the Kernel API Manual signing off ππ
go configure something gorgeous π§ββοΈπ
π¦ 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