fwnode_get_phy_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– fwnode_get_phy_mode(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so real talk: this is a page from the Kernel API Manual, and it's about fwnode_get_phy_mode(9). Yes that's a mouthful, no we're not changing it, it's iconic. Let's get into it ✨


🌸 NAME 🌸

fwnode_get_phy_mode β€” bestie, it literally gets the phy mode for the given firmware node. That's the whole personality. πŸ’…


✨ SYNOPSIS ✨

int fwnode_get_phy_mode (const struct fwnode_handle *fwnode );

that's it. that's the vibe. one function, one pointer, one int coming back at you 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • fwnode β€” pointer to the given node, fr fr. that's the one you're handing over. no cap, that's all it wants.

πŸ’œ DESCRIPTION πŸ’œ

okay so here's what it does: the function pulls the phy interface string out of the property 'phy-mode' β€” or, plot twist, it hits an error case. 😭 that's the tealeaves, that's the whole story.

so like β€” property 'phy-mode', string in, error case as the alternative. main character energy for a single property lookup, honestly. πŸ‘‘


🌈 SEE ALSO 🌈

buckle up bestie, this list is long and every single one of them ate. first up, the kernel file:

Kernel file ./drivers/base/property.c

and the iconics:

like I said. every. single. one. πŸŒˆπŸ’€ and yes you should go read them, iykyk.


πŸŽ€ sign-off πŸŽ€

this lil masterpiece comes to you from the source ./drivers/base, dated October 2026, and it's filed under fwnode_get_phy_mode(9) in the Kernel API Manual. slay, go read your firmware nodes, mwah πŸ’‹πŸ’–βœ¨

πŸ“¦ where this page comes from