]> Git Repo - linux.git/blob - include/uapi/linux/dlm_netlink.h
PCI: Do not allocate more buses than available in parent
[linux.git] / include / uapi / linux / dlm_netlink.h
1 /*
2  * Copyright (C) 2007 Red Hat, Inc.  All rights reserved.
3  *
4  * This copyrighted material is made available to anyone wishing to use,
5  * modify, copy, or redistribute it subject to the terms and conditions
6  * of the GNU General Public License v.2.
7  */
8
9 #ifndef _DLM_NETLINK_H
10 #define _DLM_NETLINK_H
11
12 #include <linux/types.h>
13 #include <linux/dlmconstants.h>
14
15 enum {
16         DLM_STATUS_WAITING = 1,
17         DLM_STATUS_GRANTED = 2,
18         DLM_STATUS_CONVERT = 3,
19 };
20
21 #define DLM_LOCK_DATA_VERSION 1
22
23 struct dlm_lock_data {
24         __u16 version;
25         __u32 lockspace_id;
26         int nodeid;
27         int ownpid;
28         __u32 id;
29         __u32 remid;
30         __u64 xid;
31         __s8 status;
32         __s8 grmode;
33         __s8 rqmode;
34         unsigned long timestamp;
35         int resource_namelen;
36         char resource_name[DLM_RESNAME_MAXLEN];
37 };
38
39 enum {
40         DLM_CMD_UNSPEC = 0,
41         DLM_CMD_HELLO,          /* user->kernel */
42         DLM_CMD_TIMEOUT,        /* kernel->user */
43         __DLM_CMD_MAX,
44 };
45
46 #define DLM_CMD_MAX (__DLM_CMD_MAX - 1)
47
48 enum {
49         DLM_TYPE_UNSPEC = 0,
50         DLM_TYPE_LOCK,
51         __DLM_TYPE_MAX,
52 };
53
54 #define DLM_TYPE_MAX (__DLM_TYPE_MAX - 1)
55
56 #define DLM_GENL_VERSION 0x1
57 #define DLM_GENL_NAME "DLM"
58
59 #endif /* _DLM_NETLINK_H */
This page took 0.026921 seconds and 4 git commands to generate.