libnvme_sub...min_passthru(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… libnvme_submit_admin_passthru β€” the libnvme_sub...min_passthru(9) page, bestie ✨

okay so like, hi, this is page libnvme_sub...min_passthru(9) from the libnvme API manual, and it's genuinely so short and so good. it's giving "tiny function, big main character energy" 🫢


πŸŽ€ NAME πŸŽ€

libnvme_submit_admin_passthru β€” queues up an admin passthru command, no cap πŸ¦‹


✨ SYNOPSIS ✨

int libnvme_submit_admin_passthru (struct libnvme_transport_handle *hdl
, struct libnvme_passthru_cmd *cmd , void *cookie );

look at her. three args. flawless. returns an int πŸ’–


🌸 ARGUMENTS 🌸

  • hdl β€” the transport handle, aka the whole vibe you're sending things through πŸš€
  • cmd β€” the actual nvme admin command you're sending out into the world πŸ‘‘
  • cookie β€” a user-defined opaque value that comes right back to you at completion πŸͺ literally a little treat you hand off and get returned. iykyk

πŸ”₯ DESCRIPTION πŸ”₯

so basically it queues cmd for asynchronous execution. yes bestie, async β€” it does not wait around, it's booked and busy, it hands the command off and moves on 🧚

when the command actually finishes, the completion gets reported back to you via libnvme_reap_passthru. so don't forget to reap, that's the whole vibe check 🌈


⭐ RETURN ⭐

  • 0 β€” slay, queued successfully πŸ’…
  • a negative error code β€” it did NOT eat, something went wrong 😭
fr fr, always check that return value. 0 is the good ending, anything negative means the queueing itself failed.

and that's the whole page, she's short but she ate 🌸

🫢 so cute, so brief β€” this was libnvme_sub...min_passthru(9) from the libnvme API manual, dated October 2026. mwah, go queue some admin commands bestie πŸ’œ
πŸ“¦ where this page comes from