cxl_set_capacity(9)
π¦ cxl_set_capacity(9) π¦
okay so bestie, welcome to the Kernel API Manual page for cxl_set_capacity(9) β yes that "9" is the section number, iykyk, this is a kernel function not a command you type at your shell π
β¨ NAME β¨
cxl_set_capacity β initialize dpa by a driver without a mailbox.
Like, the driver just sets it directly, no mailbox involved. Periodt.
πΈ SYNOPSIS πΈ
int cxl_set_capacity (struct cxl_dev_state *cxlds , u64 capacity );
That's the whole signature, character for character, no cap. Returns an int, takes two things, and we're gonna meet them right now π«Ά
π ARGUMENTS π
cxldsβ pointer tocxl_dev_state. it's the state struct for the device, she's the main character here πcapacityβ device volatile memory size. au64, so she can hold a lot of number, we love a big int π
π SEE ALSO π
the kernel file ./drivers/cxl/core/memdev.c is the spot to go read next, and while you're there say hi to these icons bestie:
set_exclusive_cxl_commands(9)clear_exclusive_cxl_commands(9)cxl_mem_get_fw_info(9)cxl_mem_activate_fw(9)cxl_mem_abort_fw_xfer(9)
all linked, all iconic, go read them fr fr πβ¨
lowkey a reminder that this is kernel API territory βcxldsneeds to actually be a valid pointer to astruct cxl_dev_state, so pls don't be out here passing vibes instead of pointers ππ
and that's the page!! π written out of ./drivers/cxl/core, dated October 2026, and yeah the page is literally named cxl_set_capacity(9) β slay, bye bestie ππ¦πΈ
π¦ 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