STRUCT ATH_OPS(9)
π struct ath_ops(9) π
okay bestie, welcome to the Kernel API Manual β this is the struct ath_ops page and it's literally the plug for register read/write operations. yes we're doing kernel plumbing today and yes you're gonna slay it π«Ά
β¨ NAME β¨
struct ath_ops β Register read/write operations. that's the whole vibe. register reads, register writes, that's her π
πΈ SYNOPSIS πΈ
here's the struct in all her glory, copy it exactly, do not freestyle:
struct ath_ops {
unsigned int (*read)(void *, u32 reg_offset);
void (*multi_read)(void *, u32 *addr, u32 *val, u16 count);
void (*write)(void *, u32 val, u32 reg_offset);
void (*enable_write_buffer)(void *);
void (*write_flush) (void *);
u32 (*rmw)(void *, u32 reg_offset, u32 set, u32 clr);
void (*enable_rmw_buffer)(void *);
void (*rmw_flush) (void *);
};
likeβ¦ she's just a little bundle of function pointers and honestly? iconic π
π Members π
the manpage spells out these five for us, so let's go (iykyk):
readβ Register read. you want a register? she reads you a register. one function pointer, zero drama β¨multi_readβ Multiple register read. it's giving "I'm not doing these one at a time" energy β this is the plural version, fr fr πwriteβ Register write. you hand hervalandreg_offset, she writes it out. no cap πenable_write_bufferβ Enable multiple register writes. turn the buffering ON so the writes can pile up cutely instead of going out one by one π¦write_flushβ flush buffered register writes and disable buffering. okay so this one is the main character moment: she flushes whatever's buffered AND turns buffering back off. both. at once. obsessed π
heads up bestie β the struct up top also carriesrmw,enable_rmw_bufferandrmw_flush, but this page's Members list only spells out the five above. keeping it exactly as written, not gonna invent lore π
π₯ SEE ALSO π₯
go look at the actual source, she's right here:
Kernel file ./drivers/net/wireless/ath/ath.h
that's the whole page, bestie β go read your registers responsibly π§π
signed off with love from ./drivers/net/wireless/ath, dated October 2026 β
π¦ 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