nvme_init_l...l_data_queue(9)
π nvme_init_lm_get_features_ctrl_data_queue(9)
okay so bestie, welcome to the libnvme API manual πΈ β yes, the header is literally truncated to nvme_init_l...l_data_queue(9) and no, we are not going to fight the terminal about it. anyway, the function we're obsessing over is the full-length queen herself:
nvme_init_lm_get_features_ctrl_data_queue
and she does exactly what her name says, no cap. she sets up your passthru command so you can ask a controller about its Data Queue. let's get into it π«Ά
β¨ NAME β¨
nvme_init_lm_get_features_ctrl_data_queue β Initialize passthru command for Get Controller Data Queue feature π«
like, that's it. that's the whole job. and she ate.
π SYNOPSIS π
void nvme_init_lm_get_features_ctrl_data_queue (struct
libnvme_passthru_cmd *cmd , enum nvme_get_features_sel sel , __u16 cdqid
, struct nvme_lm_ctrl_data_queue_fid_data *qfd );
it's giving void, it's giving four arguments, it's giving absolutely no return value because she's a helper and she knows it. π
π ARGUMENTS π
cmdβ the passthru command you're gonna be working with. this is the vessel. the main character. she gets initialized. πselβ which type of attribute you want back, fr fr. checkenum nvme_get_features_selif you need the full menu of options. πcdqidβ the Controller Data Queue ID (CDQID), a__u16, very demure, very mindful. this is you telling it which queue you're asking about.qfdβ the Get Controller Data Queue feature data buffer, i.e. where the good stuff lands.struct nvme_lm_ctrl_data_queue_fid_data *if you want to be precise about it, and you should. β¨
π₯ DESCRIPTION π₯
so here's the tea, bestie: this function initializes the passthru command buffer for the Get Features command, and it sets the FID value to NVME_FEAT_FID_CTRL_DATA_QUEUE. π¦
that's it. that's the whole vibe. you hand it a command, a selector, a CDQID and a buffer, and it wires up the Get Features request for the Controller Data Queue feature. lowkey iconic, highkey useful. π
no return value, no exit statuses, no hidden surprises β void really said "I come with no baggage" π
that's the whole page, bestie π this masterpiece comes to you via the libnvme API manual, dated October 2026 β so go forth, init that queue, and 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