ocxl_global_mmio_set32(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ocxl_global_mmio_set32(9) β€” from the Kernel API Manual, bestie ✨

okay so this is a kernel API page, and honestly? it's a little one. a lil snack. it's literally just "set some bits in a 32 bit global MMIO register" and dip. no cap, that's the whole vibe. let's get into it 🫢


🌸 NAME 🌸

ocxl_global_mmio_set32 β€” Set bits in a 32 bit global MMIO register

like. the name says it all bestie. you're setting bits. thirty-two of them. in a global MMIO register. iconic behavior honestly πŸ‘‘


✨ SYNOPSIS ✨

int ocxl_global_mmio_set32 (struct ocxl_afu *afu , size_t offset ,
                            enum ocxl_endian endian , u32 mask );

that's the whole function signature, copy it exactly please, i'm not about to let you typo your way into a kernel panic 😭


πŸŽ€ ARGUMENTS πŸŽ€

  • afu β€” The AFU. that's the Accelerated Function Unit you're poking at, your main character struct of the moment πŸ’œ
  • offset β€” The Offset from the start of MMIO. so like, where in the MMIO space we're hanging out, measured from the beginning πŸ¦‹
  • endian β€” the endianness that the MMIO data is in. lowercase "the" in the original, i'm just saying, but yes β€” this is where you tell it which endian your data is living in 🌈
  • mask β€” a mask of the bits to set. the ones you're switching ON, not clearing. that's a whole different function, stay tuned πŸ‘€

πŸ”₯ DESCRIPTION πŸ”₯

Returns 0 for success, negative on error.

that's it. that's the description. one line. honestly? she's lowkey efficient. not me being obsessed with a function that just says "yeah it returns an int" and leaves πŸ’€

so bestie: if you get 0 back, you ate. if you get a negative value, something went sideways β€” handle it, don't ignore it, we don't do that here πŸ™ˆ


🧚 SEE ALSO 🧚

Kernel file ./include/misc/ocxl.h β€” that's where the good stuff lives, go read it, iykyk πŸ“–

and the whole OCXL bestie lineup:

like, the whole friend group fr fr πŸ’…βœ¨


heads up bestie: everything above is straight from the manpage, i'm just the messenger with better eyeliner πŸŽ€

and that's a wrap! this page lives in ./include/misc, dated October 2026, and its whole name-title-thing is ocxl_global_mmio_set32(9). slay, go set some bits πŸ’–πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from