DOKK / manpages / debian 12 / libnvme-dev / nvme_submit_admin_passthru64.2.en
nvme_submit_admin_passthru64(2) libnvme API manual nvme_submit_admin_passthru64(2)

nvme_submit_admin_passthru64 - Submit a 64-bit nvme passthrough admin command

int nvme_submit_admin_passthru64 (int fd , struct nvme_passthru_cmd64 *cmd , __u64 *result );

File descriptor of nvme device
The nvme admin command to send
Optional field to return the result from the CQE DW0-1

Uses NVME_IOCTL_ADMIN64_CMD for the ioctl request.

The nvme command status if a response was received (see enum nvme_status_field) or -1 with errno set otherwise.

nvme_submit_admin_passthru64 January 2023