phy_clear_bits(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… phy_clear_bits(9) β€” Kernel API Manual, bestie edition πŸŽ€

okay so picture this: you're deep in the kernel, you're living in phy_clear_bits(9) land, and the manual is literally called Kernel API Manual. yeah. that's the vibe. let's get into it ✨


🌸 NAME 🌸

phy_clear_bits β€” the convenience function for clearing bits in a PHY register. that's it. that's the whole gig. lowkey iconic for how simple it is 🫢


✨ SYNOPSIS ✨

int phy_clear_bits (struct phy_device *phydev , u32 regnum , u16 val );

she takes three things and hands you back an int. no cap, that's the whole signature πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • phydev β€” the phy_device struct. your main character, fr fr. this is the device you're messing with 🧚
  • regnum β€” register number to write. this is where you're going πŸ’«
  • val β€” bits to clear. this is what you're yeeting out of there πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

okay bestie, buckle up, because this list is long and I am obsessed with how thorough it is. every single one of these, no skipping, periodt πŸ’€

First up, the kernel file itself β€” that's Kernel file ./include/linux/phy.h, and the whole squad that lives near it:

like… fifty-three entries. she ate and left no crumbs πŸ‘‘ ngl if you read all of these you're basically a PHY scholar at this point 🌈


real talk though: phy_clear_bits is your convenience wrapper β€” the manual says so right in the NAME section β€” so if you're reaching for it, you probably already know what you're doing. slay πŸ’–

and that's the whole page, bestie!! this icon came from ./include/linux and the version stamp on it is October 2026 β€” so when you cite it, cite it with love πŸŽ€ bye pookie, go clear some bits πŸ’œ

πŸ“¦ where this page comes from