arc_reg_or(9)
β¨ 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 π₯
- Kernel file
./drivers/net/ethernet/arc/emac.h struct arc_emac_bd(9)struct buffer_state(9)struct arc_emac_priv(9)arc_reg_set(9)arc_reg_get(9)arc_reg_clr(9)
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
- 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