NVME_SUBMIT_ADMIN_PASSTHRU64(2)
π nvme_submit_admin_passthru64 β libnvme API manual, section 2 π
bestie. stop scrolling. you're in the libnvme API manual and this is the function that lets you yeet a full 64-bit admin command straight at your NVMe device. no cap. it's giving raw ioctl energy but, like, with a nice wrapper. π¦
β¨ NAME β¨
nvme_submit_admin_passthru64 β Submit a 64-bit nvme passthrough admin command
okay so literally that's the whole vibe: a 64-bit passthrough admin command, submitted. slay. π
β¨ SYNOPSIS β¨
int nvme_submit_admin_passthru64 (int fd , struct nvme_passthru_cmd64
*cmd , __u64 *result );
three little params standing in a row, iconic honestly πΈ
β¨ ARGUMENTS β¨
fdβ File descriptor of nvme device. yes bestie, the actual open handle to your drive, you can't just manifest this one πcmdβ The nvme admin command to send. this is yourstruct nvme_passthru_cmd64and it's the main character of this whole operation πresultβ Optional field to return the result from the CQE DW0-1. optional!! so you can pass it if you want the tea, or not if you don't π
β¨ DESCRIPTION β¨
so basically this function goes through NVME_IOCTL_ADMIN64_CMD for the ioctl request. that's it. that's the whole description. it's a one-line queen and she ate. π₯
lowkey important: that's the only mechanism mentioned here, so that's the one it uses. no substitutions, no improvising, we respect the pipeline π
β¨ RETURN β¨
here's the vibe check on what you get back:
- it returns the nvme command status if a response was received β and for the full list of what those statuses mean, go look at
enum nvme_status_fieldπ - otherwise it returns
-1anderrnogets set. yes, the classic.-1+errno, the duo that never misses π
so fr fr: check your return value, and if it's -1, go read errno before you spiral. β¨
π that's the whole page π
no SEE ALSO section, no extra lore, just a tiny perfect function doing one job. obsessed. π«Ά
and that's a wrap on this lil section-2 moment β brought to you by the libnvme API manual, dated July 2026 π mwah, go submit something 64-bit, iykyk π§
π¦ where this page comes from
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· 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