ocxl_global_mmio_read32(9)
π 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 au32 *, 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 π
ocxl_function_open(9)ocxl_function_afu_list(9)ocxl_function_fetch_afu(9)ocxl_afu_get(9)ocxl_afu_put(9)ocxl_function_config(9)ocxl_function_close(9)ocxl_context_alloc(9)ocxl_context_free(9)ocxl_context_attach(9)ocxl_context_detach(9)ocxl_afu_irq_alloc(9)ocxl_afu_irq_free(9)ocxl_afu_irq_get_addr(9)ocxl_irq_set_handler(9)ocxl_afu_config(9)ocxl_afu_set_private(9)ocxl_afu_get_private(9)ocxl_global_mmio_read64(9)ocxl_global_mmio_write32(9)ocxl_global_mmio_write64(9)ocxl_global_mmio_set32(9)ocxl_global_mmio_set64(9)ocxl_global_mmio_clear32(9)ocxl_global_mmio_clear64(9)
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
- 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