summaryrefslogtreecommitdiffstats
path: root/nvme-status.h
blob: 92a474c55bb63d4dea4337a121ba4bdf92da22ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <linux/types.h>
#include <stdbool.h>

/*
 * nvme_status_type - It gives SCT(Status Code Type) in status field in
 *                    completion queue entry.
 * @status: status field located at DW3 in completion queue entry
 */
static inline __u8 nvme_status_type(__u16 status)
{
	return (status & 0x700) >> 8;
}

__u8 nvme_status_to_errno(int status, bool fabrics);