ocxl_function_config(9)
π ocxl_function_config β bestie's guide to the OpenCAPI function config β¨
okay so this is a page from the Kernel API Manual (section 9, kernel-space vibes only π) and it's literally just one little getter. short queen. iconic behavior.
πΈ NAME πΈ
ocxl_function_config β get the configuration information for an OpenCAPI function. that's it. that's the whole job. she's a look-up, not a glow-up π
β¨ SYNOPSIS β¨
const struct ocxl_fn_config * ocxl_function_config (struct ocxl_fn *fn );
yes the return type is const struct ocxl_fn_config * β read-only, hands off, no take-backsies π«Ά
π ARGUMENTS π
fnβ the OpenCAPI function you want the config for. like, the actual function object. you gotta hand her the function, she's not gonna go find it herself π
π¦ DESCRIPTION π¦
Returns the function config, or NULL on error.
that's the whole thing bestie. she gives you back the config, and if something went sideways you get NULL back instead β so like, always check for NULL, no cap, that's the vibe check π NULL means error, and error means it's not your day.
π₯ SEE ALSO π₯
the whole girl squad, in order, no one left out π also peep the kernel file: ./include/misc/ocxl.h in the Kernel sources π
ocxl_function_open(9)ocxl_function_afu_list(9)ocxl_function_fetch_afu(9)ocxl_afu_get(9)ocxl_afu_put(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)
π reminder: NULL on error is a real return value, not a personality trait. check it. every time. periodt.
kisses bestie, go read your configs π this page came from the ./include/misc source, dated October 2026, and it's ocxl_function_config(9) β that's the whole footer, mwah πβ¨π¦
π¦ 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