yt8821_modif...p_fiber_bmcr(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

welcome to the Kernel API Manual, bestie ๐Ÿ’– this page's manual name is yt8821_modif...p_fiber_bmcr(9), and today's main-character function is yt8821_modify_utp_fiber_bmcr(9). let's get into it, no cap โœจ

๐Ÿ’– NAME ๐Ÿ’–

yt8821_modify_utp_fiber_bmcr โ€” bits modify a PHY's BMCR register. yes bestie, that's the official phrasing and we're keeping it ๐Ÿ’…

๐ŸŒธ SYNOPSIS ๐ŸŒธ

okay so the signature is literally this, untouched and iconic:

int yt8821_modify_utp_fiber_bmcr (struct phy_device *phydev , u16 mask ,
       u16 set );

๐ŸŽ€ ARGUMENTS ๐ŸŽ€

  • phydev โ€” the phy_device struct. that's the PHY device you're working with ๐Ÿซถ
  • mask โ€” bit mask of bits to clear. iykyk, these are the ones getting cleared โœจ
  • set โ€” bit mask of bits to set. these are the ones going in ๐Ÿ’…

๐Ÿ’… NOTE ๐Ÿ’…

this is a convenience function ๐Ÿซถ it allows a PHY's BMCR register to be modified as:

new register value = (old register value & ~mask) | set

that's the formula, bestie. periodt ๐Ÿงฎ

๐Ÿฆ‹ RETURN ๐Ÿฆ‹

0 or negative errno code. that's the whole return story ๐Ÿ˜Œ

๐ŸŒˆ SEE ALSO ๐ŸŒˆ

Kernel file: ./drivers/net/phy/motorcomm.c โ€” go peek, bestie ๐Ÿ“‚

and the whole function friend group is here, every single one invited to the group chat ๐Ÿ’ฌ

mwah ๐Ÿ’‹ โ€” from ./drivers/net/phy, October 2026, in the yt8821_modif...p_fiber_bmcr(9) manual. stay iconic, bestie ๐ŸŽ€โœจ

๐Ÿ“ฆ where this page comes from