phy_get_rx_polarity(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… phy_get_rx_polarity β€” get the RX polarity for a PHY differential lane

Okay bestie, so this is a page from the Kernel API Manual and honestly? It's a little function that does exactly one thing and does it cute. It's phy_get_rx_polarity, and it goes and fetches the RX polarity setting for a PHY differential lane. Yes, polarity. Yes, differential lanes. We love a niche queen. 🌸


✨ SYNOPSIS ✨

int phy_get_rx_polarity (struct fwnode_handle *fwnode , const char
*mode_name , unsigned int supported , unsigned int default_val ,
unsigned int *val );

Like, that's the whole vibe: you hand it a firmware node, a mode name, a bitmask of what's allowed, a fallback, and somewhere to put the answer. She returns an int, because of course she does. πŸŽ€


🫢 ARGUMENTS 🫢

  • fwnode β€” pointer to the PHY's firmware node. This is the starting point, the main character, the place she goes looking. πŸ’–
  • mode_name β€” the name of the PHY mode to look up. String in, knowledge out, iykyk.
  • supported β€” a bit mask of PHY_POL_NORMAL, PHY_POL_INVERT and PHY_POL_AUTO. That's the menu of polarity values she's allowed to give you back. πŸ¦‹
  • default_val β€” the default polarity value you get if the property is missing. Bestie fallback. She's got your back. ✨
  • val β€” pointer to the returned polarity. This is where the answer lands. Write her address down, she's got mail. πŸ’Œ

πŸ”₯ RETURN πŸ”₯

  • zero on success β€” slay, we ate, the polarity has arrived πŸ‘‘
  • negative error on failure β€” no cap, something went wrong, she's telling you with a negative number πŸ’€

🌈 SEE ALSO 🌈

So many siblings! It's a whole family of polarity getters and, honestly, they're all iconic. 🧚


ngl the RX half of the lane is living its truth here β€” polarity is serious business, so always check that return value, okay? 😭

That's the whole page, bestie. No notes, 10/10, would read again. πŸ“

And finally, the little sign-off: this one lives under ./drivers/phy, dated October 2026, and that's the version of the Kernel API Manual we're all swooning over. Mwah. πŸ’…β­

πŸ“¦ where this page comes from