libnvme(9)
π NAME π
okay bestie, gather round, because this is struct nvme_lm_cdq_args β the little argument bundle you hand over when you wanna run the Controller Data Queue (CDQ) command β¨
π¦ SYNOPSIS π¦
like, this is the shape of it, no cap:
struct nvme_lm_cdq_args {
__u32 *result;
void *data;
int args_size;
int fd;
__u32 timeout;
__u16 mos;
__u16 cntlid;
__u16 cdqid;
__u8 sel;
__u8 sz_u8;
__u8 rsvd1[4];
__u32 sz;
};
πΈ Members πΈ
every single field, and yes we are going through ALL of them, periodt π
resultβ gets set when the command finishes, and it holds the command's CQE DWORD 0 controller response. that's it, that's the field. πdataβ a pointer to data. iconic, mysterious, does exactly what it says on the tin πargs_sizeβ the length of the structure. yes she's measuring herself, we love self-awareness πfdβ the file descriptor of the nvme device. the golden ticket, the main character π«Άtimeoutβ timeout, in ms. so real for that β³mosβ Management Operation Specific (MOS): this field is specific to theSELtype. iykyk πcntlidβ Controller ID: for Create CDQ, this specifies the target migratable controller π§cdqidβ Controller Data Queue ID (CDQID): for Create CDQ, this field is the CDQID created by the controller if no error is present. for Delete CDQ, this field is the CDQID to delete. she does double duty and she ate π₯selβ Select (SEL): this field specifies the type of management operation to perform. choose your fighter β¨sz_u8β for Create CDQ, specifies the size of CDQ, in dwords - 1 byte. one (1) byte of it, exactly πrsvd1β Reserved. not your moment bestie, sit this one out πszβ for Create CDQ, specifies the size of CDQ, in dwords - 4 byte. four (4) bytes this time, and that's the whole vibe π
lowkey reminder:mosis tied to whateverSELyou picked, andcdqidmeans different things depending on whether you're Creating or Deleting. do not mix those up, bestie, i'm begging π
and that's the whole page, mwah π this was libnvme(9) from the API Manual, dated August 2026 β go forth and CDQ responsibly, ily, bye ππβ¨
π¦ 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