2
* Copyright (C) 2007 Red Hat, Inc. All rights reserved.
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.
10
#define _DLM_NETLINK_H
12
#include <linux/types.h>
15
DLM_STATUS_WAITING = 1,
16
DLM_STATUS_GRANTED = 2,
17
DLM_STATUS_CONVERT = 3,
20
#define DLM_LOCK_DATA_VERSION 1
22
struct dlm_lock_data {
33
unsigned long timestamp;
35
char resource_name[DLM_RESNAME_MAXLEN];
40
DLM_CMD_HELLO, /* user->kernel */
41
DLM_CMD_TIMEOUT, /* kernel->user */
45
#define DLM_CMD_MAX (__DLM_CMD_MAX - 1)
53
#define DLM_TYPE_MAX (__DLM_TYPE_MAX - 1)
55
#define DLM_GENL_VERSION 0x1
56
#define DLM_GENL_NAME "DLM"
58
#endif /* _DLM_NETLINK_H */