nvme_init_lm_cdq_create(9)
π nvme_init_lm_cdq_create(9) β like, the whole glow-up
okay so bestie, welcome to the libnvme API manual page for nvme_init_lm_cdq_create β section 9, kernel-adjacent, iconic behavior only. this one's a passthru-command initializer and it's honestly giving "small function, big responsibilities" β¨
πΈ NAME πΈ
nvme_init_lm_cdq_create β Initialize passthru command for Controller Data Queue create β Controller Data Queue command π
like, yes, that's the full name, and yes, it says "Controller Data Queue" twice, and no, we are not editing it. periodt.
π¦ SYNOPSIS π¦
void nvme_init_lm_cdq_create (struct libnvme_passthru_cmd *cmd , __u16
mos , __u16 cntlid , __u32 cdqsize , void *data );
that's it. that's the whole call. returns void, so don't go looking for a return value, bestie β it's not coming π
β¨ ARGUMENTS β¨
cmdβ the Passthru command to use. this is the buffer you're initializing, the main character of the whole operation πmosβ Management Operation Specific (MOS). this field is specific to the SEL type, so likeβ¦ it depends. iykyk πcntlidβ Controller ID: for Create CDQ, this specifies the target migratable controller. pick your fave, i guess π§cdqsizeβ for Create CDQ, this specifies the size of CDQ, in dwords β 4 byte. yeah. dwords. minus 4 bytes. that's the unit, don't @ me πdataβ Pointer to data buffer. your actual payload lives here π
π DESCRIPTION π
so what does it actually do? it initializes the passthru command buffer for the Controller Data Queue command. that's the whole vibe β you hand it a cmd and the rest of the args, and it sets the buffer up so you can go create a CDQ π
β οΈ important note, fr fr: the result CDQID is returned in the CQE dword0, which the submission function must handle. so like β this function doesn't hand you the CDQID back. nope. it shows up later, in the completion queue entry, and it's on the submission function to deal with it. don't forget, or you will simply not have your CDQID π
that's the whole page, bestie β no cap, nothing hidden, every flag and field accounted for π«Ά
mwah π β written under the libnvme API manual, section 9, dated October 2026. see you in the next one, slay β¨π
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms