Whamcloud - gitweb
499f32bd46c257c9531fba05aeca5e6f722db7a4
[fs/lustre-release.git] / lnet / include / lnet / errno.h
1 #ifndef _P30_ERRNO_H_
2 #define _P30_ERRNO_H_
3
4 #include "build_check.h"
5 /*
6  * include/portals/errno.h
7  *
8  * Shared error number lists
9  */
10
11 /* If you change these, you must update the string table in api-errno.c */
12 typedef enum {
13         PTL_OK                  = 0,
14         PTL_SEGV                = 1,
15
16         PTL_NO_SPACE            = 2,
17         PTL_ME_IN_USE           = 3,
18         PTL_VAL_FAILED          = 4,
19
20         PTL_NAL_FAILED          = 5,
21         PTL_NO_INIT             = 6,
22         PTL_IFACE_DUP           = 7,
23         PTL_IFACE_INVALID       = 8,
24
25         PTL_HANDLE_INVALID      = 9,
26         PTL_MD_INVALID          = 10,
27         PTL_ME_INVALID          = 11,
28 /* If you change these, you must update the string table in api-errno.c */
29         PTL_PROCESS_INVALID     = 12,
30         PTL_PT_INDEX_INVALID    = 13,
31
32         PTL_SR_INDEX_INVALID    = 14,
33         PTL_EQ_INVALID          = 15,
34         PTL_EQ_DROPPED          = 16,
35
36         PTL_EQ_EMPTY            = 17,
37         PTL_MD_NO_UPDATE        = 18,
38         PTL_FAIL                = 19,
39
40         PTL_IOV_TOO_MANY        = 20,
41         PTL_IOV_TOO_SMALL       = 21,
42
43         PTL_EQ_IN_USE           = 22,
44
45         PTL_MAX_ERRNO           = 23
46 } ptl_err_t;
47 /* If you change these, you must update the string table in api-errno.c */
48
49 extern const char *ptl_err_str[];
50
51 #endif