ocxl_global_mmio_read32(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ocxl_global_mmio_read32 πŸ’…

okay so this is a page straight out of the Kernel API Manual, and bestie, it's a short one but it's lowkey iconic. we're reading a 32-bit value from global MMIO. that's the whole vibe. let's get into it 🫢


✨ NAME ✨

ocxl_global_mmio_read32 β€” Read a 32 bit value from global MMIO

like... the name literally tells you everything, but we're gonna spell it out anyway because that's what we do πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

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

there she is. four args, one int coming back at you. copy it exactly, no cap ⭐


πŸ¦‹ ARGUMENTS πŸ¦‹

  • afu β€” the AFU. yeah. that's the whole description bestie, the manpage is being mysterious πŸ™ˆ
  • offset β€” the Offset from the start of MMIO. so like, where in the MMIO space you're pointing at 🎯
  • endian β€” the endianness that the MMIO data is in. gotta know which way the bytes are facing before you read them πŸ’…
  • val β€” returns the value. it's a u32 *, so you pass in the address and it fills it in for you, main character energy πŸ‘‘

🌸 DESCRIPTION 🌸

Returns 0 for success, negative on error.

that's it. that's the section. short, sweet, and honestly kind of a slay ✨

just remember: 0 = we ate. negative = something went wrong, check yourself before you wreck yourself 😭

🌈 SEE ALSO 🌈

Kernel file ./include/misc/ocxl.h

and the whole friend group, fr fr β€” every single one of these is linked below, don't skip any πŸ‘‡


and that's the page!! 🧚 made its home in ./include/misc, dated October 2026, living under the name ocxl_global_mmio_read32(9). go read your 32 bits bestie, you've got this πŸ’œπŸ“

πŸ“¦ where this page comes from