Skip to content

Commit 8d84dab

Browse files
committed
util.h: fixup kernel-doc comments
To keep sphinx happy. Signed-off-by: Hannes Reinecke <[email protected]>
1 parent 3068bd7 commit 8d84dab

1 file changed

Lines changed: 37 additions & 14 deletions

File tree

src/nvme/util.h

Lines changed: 37 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,35 @@
1111

1212
#include "types.h"
1313

14-
/* nvme connect error codes */
15-
#define ENVME_CONNECT_RESOLVE 1000 /* "failed to resolve host" */
16-
#define ENVME_CONNECT_ADDRFAM 1001 /* "unrecognized address family" */
17-
#define ENVME_CONNECT_TRADDR 1002 /* "failed to get traddr" */
18-
#define ENVME_CONNECT_TARG 1003 /* "need a transport (-t) argument" */
19-
#define ENVME_CONNECT_AARG 1004 /* "need a address (-a) argument\n" */
20-
#define ENVME_CONNECT_OPEN 1005 /* "failed to open nvme-fabrics device" */
21-
#define ENVME_CONNECT_WRITE 1006 /* "failed to write to nvme-fabrics device" */
22-
#define ENVME_CONNECT_READ 1007 /* "failed to read from nvme-fabrics device" */
23-
#define ENVME_CONNECT_PARSE 1008 /* "failed to parse ctrl info" */
24-
#define ENVME_CONNECT_INVAL_TR 1009 /* "invalid transport type" */
25-
#define ENVME_CONNECT_LOOKUP_SUBSYS_NAME 1010 /* "failed to lookup subsystem name" */
26-
#define ENVME_CONNECT_LOOKUP_SUBSYS 1011 /* "failed to lookup subsystem */
14+
/**
15+
* enum nvme_connect_err - nvme connect error codes
16+
* @ENVME_CONNECT_RESOLVE: failed to resolve host
17+
* @ENVME_CONNECT_ADDRFAM: unrecognized address family
18+
* @ENVME_CONNECT_TRADDR: failed to get traddr
19+
* @ENVME_CONNECT_TARG: need a transport (-t) argument
20+
* @ENVME_CONNECT_AARG: need a address (-a) argument
21+
* @ENVME_CONNECT_OPEN: failed to open nvme-fabrics device
22+
* @ENVME_CONNECT_WRITE: failed to write to nvme-fabrics device
23+
* @ENVME_CONNECT_READ: failed to read from nvme-fabrics device
24+
* @ENVME_CONNECT_PARSE: failed to parse ctrl info
25+
* @ENVME_CONNECT_INVAL_TR: invalid transport type
26+
* @ENVME_CONNECT_LOOKUP_SUBSYS_NAME: failed to lookup subsystem name
27+
* @ENVME_CONNECT_LOOKUP_SUBSYS: failed to lookup subsystem
28+
*/
29+
enum nvme_connect_err {
30+
ENVME_CONNECT_RESOLVE = 1000,
31+
ENVME_CONNECT_ADDRFAM,
32+
ENVME_CONNECT_TRADDR,
33+
ENVME_CONNECT_TARG,
34+
ENVME_CONNECT_AARG,
35+
ENVME_CONNECT_OPEN,
36+
ENVME_CONNECT_WRITE,
37+
ENVME_CONNECT_READ,
38+
ENVME_CONNECT_PARSE,
39+
ENVME_CONNECT_INVAL_TR,
40+
ENVME_CONNECT_LOOKUP_SUBSYS_NAME,
41+
ENVME_CONNECT_LOOKUP_SUBSYS,
42+
};
2743

2844
/**
2945
* nvme_status_to_errno() - Converts nvme return status to errno
@@ -100,7 +116,14 @@ void nvme_init_dsm_range(struct nvme_dsm_range *dsm, __u32 *ctx_attrs,
100116
__u32 *llbas, __u64 *slbas, __u16 nr_ranges);
101117

102118
/**
103-
* nvme_init_copy_range() -
119+
* nvme_init_copy_range() - Constructs a copy range structure
120+
* @copy: Copy range array
121+
* @nlbs: Number of logical blocks
122+
* @slbas: Starting LBA
123+
* @eilbrts: Expected initial logical block reference tag
124+
* @elbatms: Expected logical block application tag mask
125+
* @elbats: Expected logical block application tag
126+
* @nr: Number of descriptors to construct
104127
*/
105128
void nvme_init_copy_range(struct nvme_copy_range *copy, __u16 *nlbs,
106129
__u64 *slbas, __u32 *eilbrts, __u32 *elbatms,

0 commit comments

Comments
 (0)