1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * Copyright (C) 2007 Red Hat, Inc. All rights reserved.
5 * This copyrighted material is made available to anyone wishing to use,
6 * modify, copy, or redistribute it subject to the terms and conditions
7 * of the GNU General Public License v.2.
10 #ifndef _DLM_NETLINK_H
11 #define _DLM_NETLINK_H
13 #include <linux/types.h>
14 #include <linux/dlmconstants.h>
17 DLM_STATUS_WAITING
= 1,
18 DLM_STATUS_GRANTED
= 2,
19 DLM_STATUS_CONVERT
= 3,
22 #define DLM_LOCK_DATA_VERSION 1
24 struct dlm_lock_data
{
35 unsigned long timestamp
;
37 char resource_name
[DLM_RESNAME_MAXLEN
];
42 DLM_CMD_HELLO
, /* user->kernel */
43 DLM_CMD_TIMEOUT
, /* kernel->user */
47 #define DLM_CMD_MAX (__DLM_CMD_MAX - 1)
55 #define DLM_TYPE_MAX (__DLM_TYPE_MAX - 1)
57 #define DLM_GENL_VERSION 0x1
58 #define DLM_GENL_NAME "DLM"
60 #endif /* _DLM_NETLINK_H */