mdio_set_flag(9)
π 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 capdevadβ the MMD address, periodtaddrβ 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, iykyksenseβ 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:
mdio45_probe(9)mdio45_links_ok(9)mdio45_nway_restart(9)mdio45_ethtool_ksettings_get_npage(9)mdio_mii_ioctl(9)
this gem comes from ./drivers/net and itβs dated October 2026 β mwah ππ
π¦ 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