forked from linux-nvme/nvme-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.h
More file actions
40 lines (37 loc) · 1.11 KB
/
types.h
File metadata and controls
40 lines (37 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef TYPES_H
#define TYPES_H
#include "nvme/types.h"
/**
* struct nvme_get_log_args - Arguments for the NVMe Admin Get Log command
* @nsid: Namespace identifier, if applicable
* @rae: Retain asynchronous events
* @lsp: Log specific field
* @lid: Log page identifier, see &enum nvme_cmd_get_log_lid for known
* values
* @lsi: Log Specific Identifier
* @csi: Command set identifier, see &enum nvme_csi for known values
* @ot: Offset Type; if set @lpo specifies the index into the list
* of data structures, otherwise @lpo specifies the byte offset
* into the log page.
* @uidx: UUID selection, if supported
* @lpo: Log page offset for partial log transfers
* @log: User space destination address to transfer the data
* @len: Length of provided user buffer to hold the log data in bytes
* @result: The command completion result from CQE dword0
*/
struct nvme_get_log_args {
__u32 nsid;
bool rae;
__u8 lsp;
enum nvme_cmd_get_log_lid lid;
__u16 lsi;
enum nvme_csi csi;
bool ot;
__u8 uidx;
__u64 lpo;
void *log;
__u32 len;
__u64 *result;
};
#endif