ocxl_afu_get(9)
π ocxl_afu_get(9) β bestie's guide to the Kernel API Manual β¨
Okay so listen, this function is called ocxl_afu_get and it lives in the Kernel API Manual (yes, the actual kernel API manual, we're fancy now π). It does exactly one tiny iconic thing, and honestly? It ate. Let's get into it π¦
β¨ NAME β¨
ocxl_afu_get β take a reference to an AFU
That's it. That's the whole vibe. You're grabbing a ref. No cap π
πΈ SYNOPSIS πΈ
void ocxl_afu_get (struct ocxl_afu *afu );
Notice the void β this one returns nothing, bestie. It's giving "I just do my job and leave" main character energy. No error codes, no return value to obsess over, nothing. You call it, it happens, done π
π«Ά ARGUMENTS π«Ά
afuβ the AFU you're bumping the reference count on. That's the one. The whole target of your affection. Hand it over and the refcount goes up-up-up β¬οΈβ¨
π SEE ALSO π
This is the part where the page just unloads the entire friend group at you, and honestly it's a lot but we love a thorough queen ππ₯
Kernel file ./include/misc/ocxl.h β that's where the family lives, go say hi π
ocxl_function_open(9)ocxl_function_afu_list(9)ocxl_function_fetch_afu(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_set32(9)ocxl_global_mmio_set64(9)ocxl_global_mmio_clear32(9)ocxl_global_mmio_clear64(9)
π friendly reminder from your girl:ocxl_afu_get(9)gets,ocxl_afu_put(9)puts. You will need both. Balanced refcounts are the moment, unbalanced ones are a whole crisis. Don't do that to yourself π
Anyway bestie, this page is brought to you by ./include/misc and it's stamped October 2026 β so it's basically from the future, which is lowkey iconic of it. Now go take that reference, you absolute legend π§π
π¦ 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