1
2
3
4
5
6
7
8
9
10 #ifndef _UAPI__DLM_PLOCK_DOT_H__
11 #define _UAPI__DLM_PLOCK_DOT_H__
12
13 #include <linux/types.h>
14
15 #define DLM_PLOCK_MISC_NAME "dlm_plock"
16
17 #define DLM_PLOCK_VERSION_MAJOR 1
18 #define DLM_PLOCK_VERSION_MINOR 2
19 #define DLM_PLOCK_VERSION_PATCH 0
20
21 enum {
22 DLM_PLOCK_OP_LOCK = 1,
23 DLM_PLOCK_OP_UNLOCK,
24 DLM_PLOCK_OP_GET,
25 };
26
27 #define DLM_PLOCK_FL_CLOSE 1
28
29 struct dlm_plock_info {
30 __u32 version[3];
31 __u8 optype;
32 __u8 ex;
33 __u8 wait;
34 __u8 flags;
35 __u32 pid;
36 __s32 nodeid;
37 __s32 rv;
38 __u32 fsid;
39 __u64 number;
40 __u64 start;
41 __u64 end;
42 __u64 owner;
43 };
44
45
46 #endif