arc_reg_clr(9)
π arc_reg_clr β the Kernel API Manual moment
okay so bestie, this is arc_reg_clr(9) from the Kernel API Manual, and it's honestly such a clean little function. let me tell you everything π«Ά
β¨ NAME β¨
arc_reg_clr β applies a mask to a specified EMAC register, and it does it like this: ("reg" & ~"mask"). yes ma'am, that tilde is doing the heavy lifting π
πΈ SYNOPSIS πΈ
void arc_reg_clr (struct arc_emac_priv *priv , int reg , int mask );
that's it. that's the whole vibe. void, three args, no notes β¨
π ARGUMENTS π
privβ pointer to the ARC EMAC private data structure. it's giving "here's where all the gossip lives" πregβ the register offset from the base address. so like, which register we're pulling up on π¦maskβ the mask you're applying to that specified register. this is the main character of the operation ngl π
π₯ DESCRIPTION π₯
okay so here's the whole lore: this function reads the initial register value first, then applies the provided mask to it, and then writes it right back. three steps, zero drama, and honestly? it ate π
read β mask β write. no cap, that's the entire bit and it slays π
π§ 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_or(9)
the whole friend group, fr fr π β go read arc_reg_set, arc_reg_get and arc_reg_or next, they're literally the siblings of this one π
and that's the page, bestie π this iconic lil manual page lives under ./drivers/net/ethernet/arc, it's dated October 2026, and it goes by arc_reg_clr(9) β periodt β¨π
π¦ 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