ocxl_global_mmio_write32(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ocxl_global_mmio_write32 β€” or, how to yeet a 32-bit value into global MMIO πŸ’–

okay so this is a page from the Kernel API Manual, bestie, and it's about writing a 32 bit value to global MMIO. that's it. that's the whole vibe. let's get into it ✨


🌸 SYNOPSIS 🌸

int ocxl_global_mmio_write32 (struct ocxl_afu *afu , size_t offset ,
       enum ocxl_endian endian , u32 val );

like, four args, returns an int. nothing scary. you got this 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • afu β€” The AFU. yes queen, the AFU itself, that's who we're talking to πŸ’…
  • offset β€” The Offset from the start of MMIO. so it's how far in you're writing, measured from the very beginning of MMIO. count it out, no cap πŸ“
  • endian β€” the endianness that the MMIO data is in. gotta know which way the bytes are facing or it's giving chaos πŸ™ˆ
  • val β€” The value to write. the actual 32-bit payload, the main character of this whole operation πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does it do? it writes a 32 bit value to global MMIO. and what does it return? lowkey simple:

Returns 0 for success, negative on error. that's the whole tea. zero means slay, negative means something went sideways 😭

ngl, that's genuinely the entire description. sometimes the docs are short and iconic and that's fine πŸ’œ

⭐ SEE ALSO ⭐

Kernel file ./include/misc/ocxl.h β€” go read it, iykyk πŸ“–

and the whole friend group, fr fr:

like, read32 and write64 and set and clear are all literally right there in the list β€” it's a whole family and they all ate πŸ”₯


and that's the page!! 🧚 from ./include/misc, dated October 2026, and it's ocxl_global_mmio_write32(9) β€” go write your 32 bits, bestie, you're gonna do amazing πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from