RIO_LOP_WRITE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the size in bits vs len in bytes thing is a whole moment. 8/16/32 bits, 1/2/4 bytes. 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 🌈


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