ocxl_function_close(9)
okay so bestie, we're looking at ocxl_function_close(9) today β straight out of the Kernel API Manual, and it's literally the "bye bye" button for an OpenCAPI function π
β¨
π NAME π
ocxl_function_close β close an OpenCAPI function. It frees any AFUs you previously retrieved from the function, and detaches the associated contexts. Lowkey important: those contexts have to be freed by you, the caller. Not the function's job, yours π«Ά
β¨ SYNOPSIS β¨
void ocxl_function_close (struct ocxl_fn *fn );
πΈ ARGUMENTS πΈ
fnβ the OpenCAPI function you're closing. that's the one. the main character of this whole operation π
π¦ SEE ALSO π¦
the friend group, fr fr β go meet the whole squad:
- 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_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)
bestie reminder π β the AFUs get freed for you, the contexts do not. free them yourself or they're just gonna sit there. no cap.
that's the whole page!! this iconic little entry lives in ./include/misc and it's dated October 2026, and the heading you started at was ocxl_function_close(9) β we've come full circle, slay ππβ
π¦ 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