arc_reg_or(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ arc_reg_or(9) ✨

okay bestie, welcome to the arc_reg_or(9) page in the Kernel API Manual β€” it's a tiny helper with main-character energy, and it lives in the ARC EMAC lane. πŸ’–


🌸 NAME 🌸

arc_reg_or β€” applies a mask to the specified EMAC register, like literally ("reg" | "mask"). slay.


✨ SYNOPSIS ✨

void arc_reg_or (struct arc_emac_priv *priv , int reg , int mask );

πŸŽ€ ARGUMENTS πŸŽ€

  • priv β€” a pointer to the ARC EMAC private data structure. it's giving "hand me the private data," and honestly? valid.
  • reg β€” the register offset from the base address. not the register itself, bestie β€” the offset. keep that straight. πŸ’…
  • mask β€” the mask you want to apply to the specified register. this is literally the whole point of the function, no cap.

πŸ’… DESCRIPTION πŸ’…

okay so here's the tea: arc_reg_or reads the initial register value first, then applies the provided mask to it, and then writes the register back. that's it. that's the function. it's lowkey iconic in its simplicity. ✨


πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page, bestie 🫢 source spot is ./drivers/net/ethernet/arc, date is October 2026, and the manual name is arc_reg_or(9). mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from