libnvme_submit_io_passthru(9)
π libnvme_submit_io_passthru β the libnvme API manual, but make it make sense
okay so bestie, welcome to the libnvme_submit_io_passthru(9) page β¨ this is the libnvme API manual and honestly? it's a short one. we love a concise icon. π
πΈ NAME πΈ
libnvme_submit_io_passthru β literally just queues up an IO passthru command. that's the whole vibe. π¦
β¨ SYNOPSIS β¨
int libnvme_submit_io_passthru (struct libnvme_transport_handle *hdl ,
struct libnvme_passthru_cmd *cmd , void *cookie );
three args, one int back. it's giving "small function, big responsibility" ngl π
π«Ά ARGUMENTS π«Ά
hdlβ the transport handle. your little connection bestie, the thing that actually knows how to talk to the device. πcmdβ the nvme IO command you're sending. this is the main character of the whole operation, fr fr πcookieβ a user-defined opaque value that gets returned at completion. yes it's literally a cookie π β you hand it over, you get it back, it means whatever you want it to mean. iykyk.
π DESCRIPTION π
so here's the tea: this queues cmd for asynchronous execution. β‘ you don't sit there waiting and waiting (not me refreshing the terminal π) β you fire it off and go live your life.
completion gets reported via libnvme_reap_passthru. so like, that's where you actually pick up your results. don't forget to reap, bestie, or you'll just be out here wondering where your command went π
π₯ RETURN π₯
0β successful queueing. slay. β- negative error code β otherwise. π (yes, negative. that's your red flag moment, check the value.)
no cap: 0 only means it got queued, not that the command finished. that's what the reaping is for. β
and that's the whole page, bestie, you ate that π§ this was the libnvme_submit_io_passthru(9) entry from the libnvme API manual, dated October 2026 β go forth and queue responsibly ππ
π¦ 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