libnvme(9)

πŸ’– NAME πŸ’–

struct nvme_capacity_mgmt_args β€” bestie, this is literally the arguments struct for the NVMe Capacity Management command πŸŽ€

okay so quick vibe check: this is a page from the libnvme API Manual, section 9, and it's all about one lil struct that carries everything the Capacity Management command needs. she's giving ✨data carrier✨ energy and we're obsessed πŸ’…


✨ SYNOPSIS ✨

struct nvme_capacity_mgmt_args {
    __u32 *result;
    int args_size;
    int fd;
    __u32 timeout;
    __u32 cdw11;
    __u32 cdw12;
    __u16 element_id;
    __u8 op;
 };

no cap, that's the whole thing. every field, every type, exactly as it lives. 🫢


πŸ¦‹ Members πŸ¦‹

okay so let's meet the cast, one field at a time, main character energy only πŸ’œ

  • result β€” if everything goes well, this is where the CQE dword0 value lands. she's the payoff field fr fr 🌸
  • args_size β€” the size of struct nvme_capacity_mgmt_args. it's giving "know thyself" but make it bytecount πŸ“
  • fd β€” the file descriptor of the nvme device. your lil doorway to the hardware, slay πŸšͺ✨
  • timeout β€” timeout in ms. patience is a virtue and this field measures it ⏳
  • cdw11 β€” the least significant 32 bits of the capacity in bytes of the Endurance Group or NVM Set to be created. lowkey the bottom half 🧚
  • cdw12 β€” the most significant 32 bits of the capacity in bytes of the Endurance Group or NVM Set to be created. highkey the top half πŸ‘‘
  • element_id β€” a value specific to the value of the Operation field. it's giving "depends on op, iykyk" πŸ™ˆ
  • op β€” the operation to be performed by the controller. this is the "what are we even doing here" field and honestly? iconic πŸ’…

heads up bestie: cdw11 and cdw12 are a pair β€” least significant 32 bits and most significant 32 bits of the same capacity value. don't split them up, they're a package deal πŸ’–

and that's the whole page, no skips, no summaries, every field accounted for 🌈

kisses, this was libnvme(9) β€” struct nvme_capacity_mgmt_args, API Manual β€” dated August 2026. byeeee, go manage some capacity bestie πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from