ocxl_global_mmio_set32(9)
π 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:
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_write32(9)ocxl_global_mmio_write64(9)ocxl_global_mmio_set64(9)ocxl_global_mmio_clear32(9)ocxl_global_mmio_clear64(9)
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
- 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