mv88e6xxx_g2...atch_set_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mv88e6xxx_g2_scratch_set_bit(9) β€” okay so bestie, welcome to the Kernel API Manual ✨

hi hi hiii 🫢 you've landed on mv88e6xxx_g2_scratch_set_bit(9), and ngl this one's a whole little legend. It's a helper in the kernel's DSA corner of the world, and yes, we're gonna get into it. No cap.


🌸 NAME 🌸

mv88e6xxx_g2_scratch_set_bit β€” set (or clear) a bit πŸ’…

Like, that's literally it. One bit. Set it, or don't. Iconic minimalism, honestly.


πŸ¦‹ SYNOPSIS πŸ¦‹

int mv88e6xxx_g2_scratch_set_bit (struct mv88e6xxx_chip *chip , int
base_reg , unsigned int offset , int set );

There she is. Four args, one int coming back at you. Copy it exactly, don't get creative, she's picky πŸ’€


πŸŽ€ ARGUMENTS πŸŽ€

  • chip β€” the chip private data, aka the whole personality of the chip you're working with 🫢
  • base_reg β€” base of scratch bits. That's your starting point, babe.
  • offset β€” index of bit within the register. Which bit are we talking about? This one. Right here.
  • set β€” should this bit be set? That's the question. You answer it. Yes or no. Main character decision energy πŸ‘‘

✨ DESCRIPTION ✨

Okay so real talk β€” this is a helper function for dealing with the direction and data registers. That's the vibe. It's the little utility friend the bigger functions call up when they need a bit flipped, and it does not make a whole production of it. Lowkey the most reliable friend in the group chat 🌈

heads up bestie: it's a helper, so it's out here supporting the direction and data registers β€” not out here running the whole show.

πŸ”₯ SEE ALSO πŸ”₯

The whole squad, fr fr β€” you're gonna want to know all of them 🧚


aaaand that's the page!! πŸ“ mwah πŸ’– this cutie lives in ./drivers/net/dsa/mv88e6xxx, dated October 2026, and she's filed under mv88e6xxx_g2...atch_set_bit(9). Slay, go flip some bits responsibly, ily, bye πŸ‘‹πŸ’œ

πŸ“¦ where this page comes from