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 CQEdword0value lands. she's the payoff field fr fr πΈargs_sizeβ the size ofstruct 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 onop, 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:cdw11andcdw12are 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
- fedora 44: libnvme-doc 1.16.2-1.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms