RIO_LOP_WRITE(9)
π RIO_LOP_WRITE(9) β like, the Kernel API Manual's cutest little macro π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a macro page, and it's genuinely so niche and so iconic. it lives in the rapidio corner of the kernel and it's giving "glamorous code generator" energy fr fr π
π¦ NAME π¦
RIO_LOP_WRITE β the macro that generates all your rio_local_write_config_* functions for you. yes, it's a macro that makes functions. main character behavior tbh π
πΈ SYNOPSIS πΈ
RIO_LOP_WRITE (size , type , len );
that's it. three arguments, no notes. slay π
β¨ ARGUMENTS β¨
sizeβ the size of the configuration space write, and it's in bits:8,16,32. pick one, bestie πtypeβ the C type of the value argument. that's the type of the thing you're writing, iykyk π¦lenβ the length of the configuration space write, and this one's in bytes:1,2,4. don't mix up your bits and bytes, that's the vibe check π
ngl thesizein bits vslenin bytes thing is a whole moment.8/16/32bits,1/2/4bytes. they match up, it's fine, it's cute, we love a consistent ratio π
π DESCRIPTION π
so what does it actually do? it generates the rio_local_write_config_* functions, which are the functions you use to access configuration space registers on the local device. that's the whole thing. macro goes in, config-write functions come out π§β¨
like, you don't call this to write a register β you call this to make the functions that write the register. it's the behind-the-scenes icon, the main character's stylist, the reason the whole thing works π₯
π SEE ALSO π
- Kernel file
./drivers/rapidio/rio-access.cβ go read it, it's where the magic lives π RIO_LOP_READ(9)πRIO_OP_READ(9)πRIO_OP_WRITE(9)πrio_mport_send_doorbell(9)π (yes that's the real name and yes it's iconic)
aaand that's the page, bestie π«Ά it's from ./drivers/rapidio, dated October 2026, and honestly? obsessed. go forth and generate those config-write functions β¨π
π
π¦ 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