ocxl_global_mmio_read64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 fr
  • val β€” 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:


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