arc_reg_set(9)
π arc_reg_set β the little register-setter that could β¨
okay so bestie, welcome to the arc_reg_set(9) page from the Kernel API Manual π this is the part where we teach a tiny kernel function to write a value into an EMAC register, and honestly? it's giving "small but iconic". π
πΈ NAME πΈ
arc_reg_set β sets an EMAC register with the value you hand it. literally that's the whole job and she does it with main character energy π
β¨ SYNOPSIS β¨
void arc_reg_set (struct arc_emac_priv *priv , int reg , int value );
no cap, that's the signature β returns void, takes three things, done. π«Ά
π ARGUMENTS π
privβ a pointer to the ARC EMAC private data structure. like, the whole vibe of the device lives in there πregβ the register offset from the base address. this is which register we're talking to, iykyk πvalueβ the value to set in that register. the actual payload, the moment, the slay πβ¨
π¦ 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_get(9)arc_reg_or(9)arc_reg_clr(9)
go read those too, bestie β the whole friend group is iconic π―ββοΈ
β friendly reminder: everything above is exactly what the page says, no extras, no invented behaviour. if you need to know how it sets the register, that's a different page's problem π
and that's a wrap on this one πΈ this page came from ./drivers/net/ethernet/arc and it's dated October 2026, so likeβ¦ mark your calendars, 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