Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dlm_netlink.h
Go to the documentation of this file.
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 
14 enum {
18 };
19 
20 #define DLM_LOCK_DATA_VERSION 1
21 
22 struct dlm_lock_data {
25  int nodeid;
26  int ownpid;
33  unsigned long timestamp;
36 };
37 
38 enum {
40  DLM_CMD_HELLO, /* user->kernel */
41  DLM_CMD_TIMEOUT, /* kernel->user */
43 };
44 
45 #define DLM_CMD_MAX (__DLM_CMD_MAX - 1)
46 
47 enum {
51 };
52 
53 #define DLM_TYPE_MAX (__DLM_TYPE_MAX - 1)
54 
55 #define DLM_GENL_VERSION 0x1
56 #define DLM_GENL_NAME "DLM"
57 
58 #endif /* _DLM_NETLINK_H */