libnvme_opcode_status_to_string(9) libnvme API manual libnvme_opcode_status_to_string(9)

libnvme_opcode_status_to_string - Returns nvme opcode status string.

const char * libnvme_opcode_status_to_string (int status , bool admin , __u8 opcode );

Return status from an nvme passthrough command
Set to true if an admin command
Opcode from an nvme passthrough command

The nvme opcode status string if it is an nvme status field, or a standard errno string if status is < 0.

libnvme_opcode_status_to_string September 2026