mdio_set_flag(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so bestie, welcome to mdio_set_flag(9) from the Kernel API Manual β€” this one is literally about setting or clearing a flag in an MDIO register, and it’s giving β€œtiny but important” energy πŸ’…

✨ SYNOPSIS ✨

int mdio_set_flag (const struct mdio_if_info *mdio , int prtad , int devad , u16 addr , int mask , bool sense );

πŸ’… ARGUMENTS πŸ’…

  • mdio β€” the MDIO interface, aka your little doorway into this whole situation πŸšͺ✨
  • prtad β€” the PHY address, no cap
  • devad β€” the MMD address, periodt
  • addr β€” the register address, the exact spot we’re looking at 🎯
  • mask β€” the mask for the flag, and it’s a single bit set β€” one bit only, bestie, iykyk
  • sense β€” the new value of the flag, like its fresh little vibe check πŸ¦‹

πŸ¦‹ DESCRIPTION πŸ¦‹

This debounces changes: it does not write the register if the flag already has the proper value. Like, why touch it if it’s already slaying? πŸ’€βœ¨

Returns 0 on success, and negative on error. That’s it, that’s the whole mood 🫢

🌈 SEE ALSO 🌈

Kernel file ./drivers/net/mdio.c β€” plus these iconic little friends:


this gem comes from ./drivers/net and it’s dated October 2026 β€” mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from