cxl_set_capacity(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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 to cxl_dev_state. it's the state struct for the device, she's the main character here πŸ‘‘
  • capacity β€” device volatile memory size. a u64, 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:

all linked, all iconic, go read them fr fr πŸ“šβœ¨


lowkey a reminder that this is kernel API territory β€” cxlds needs to actually be a valid pointer to a struct 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