ocxl_global_mmio_write32(9)
π 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:
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_read32(9)ocxl_global_mmio_read64(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)
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
- 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