Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / include / uapi / linux / dlm_plock.h
blob63b6c1fd91690be9c1c8c0a8cee96b85eda1be72
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 /*
3 * Copyright (C) 2005-2008 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.
8 */
10 #ifndef _UAPI__DLM_PLOCK_DOT_H__
11 #define _UAPI__DLM_PLOCK_DOT_H__
13 #include <linux/types.h>
15 #define DLM_PLOCK_MISC_NAME "dlm_plock"
17 #define DLM_PLOCK_VERSION_MAJOR 1
18 #define DLM_PLOCK_VERSION_MINOR 2
19 #define DLM_PLOCK_VERSION_PATCH 0
21 enum {
22 DLM_PLOCK_OP_LOCK = 1,
23 DLM_PLOCK_OP_UNLOCK,
24 DLM_PLOCK_OP_GET,
27 #define DLM_PLOCK_FL_CLOSE 1
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;
46 #endif /* _UAPI__DLM_PLOCK_DOT_H__ */