logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

enum nvme_status_type - type encoding for NVMe return values, when represented as an int.

Constants

NVME_STATUS_TYPE_SHIFT shift value for status bits NVME_STATUS_TYPE_MASK mask value for status bits NVME_STATUS_TYPE_NVME NVMe command status value, typically from CDW3 NVME_STATUS_TYPE_MI NVMe-MI header status

Description

The nvme_* api returns an int, with negative values indicating an internal or syscall error, zero signifying success, positive values representing the NVMe status. That latter case (the NVMe status) may represent status values from different parts of the transport/controller/etc, and are at most 16 bits of data. So, we use the most-significant 3 bits of the signed int to indicate which type of status this is. August 2025 enum nvme_status_type libnvme(2)

Name

enum nvme_status_type - type encoding for NVMe return values, when represented as an int.

Synopsis

enum nvme_status_type { NVME_STATUS_TYPE_SHIFT , NVME_STATUS_TYPE_MASK , NVME_STATUS_TYPE_NVME , NVME_STATUS_TYPE_MI };

See Also