ocxl_global_mmio_read64(9)
π ocxl_global_mmio_read64(9) β from the Kernel API Manual, bestie β¨
okay so picture this: you're deep in kernel land, the ocxl docs are open, and you just need one (1) lil 64-bit number out of global MMIO. that's this function. she's the read64 girlie of the family and she's literally here to help π«Ά
πΈ NAME πΈ
ocxl_global_mmio_read64 β grab a 64-bit value from global MMIO. yes, sixty-four whole bits, no cap π
β¨ SYNOPSIS β¨
int ocxl_global_mmio_read64 (struct ocxl_afu *afu , size_t offset , enum
ocxl_endian endian , u64 *val );
she returns an int, takes four args, and she's not complicated. iykyk π
π ARGUMENTS π
afuβ the AFU. like, the whole accelerator function unit you're doing all this for πoffsetβ the offset from the start of MMIO. measure from the beginning, bestie, not from wherever you feel like πendianβ the endianness that the MMIO data is in. gotta tell her which way the bytes are facing fr frvalβ returns the value. she fills your pointer in with the good stuff β
π¦ DESCRIPTION π¦
Returns 0 for success, negative on error. that's the whole vibe check β zero means slay, anything negative means something went sideways and you should probably go look at it π
π SEE ALSO π
okay the whole friend group is here, and you should lowkey know all of them:
- the kernel file
./include/misc/ocxl.hπ 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_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)
ngl the read32 / write32 / write64 / set / clear siblings are all right there in that list β if you forget one, it's giving "did not read the whole friend group chat" π
and that's the page!! mwah π this one came out of ./include/misc in October 2026 β xoxo, go read your 64 bits responsibly π§ββοΈπ
π¦ 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