Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / include / uapi / linux / dlm_plock.h
blobeb66afcac40ed91a6510303cc4fb7e1bba3607cc
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,
25 DLM_PLOCK_OP_CANCEL,
28 #define DLM_PLOCK_FL_CLOSE 1
30 struct dlm_plock_info {
31 __u32 version[3];
32 __u8 optype;
33 __u8 ex;
34 __u8 wait;
35 __u8 flags;
36 __u32 pid;
37 __s32 nodeid;
38 __s32 rv;
39 __u32 fsid;
40 __u64 number;
41 __u64 start;
42 __u64 end;
43 __u64 owner;
47 #endif /* _UAPI__DLM_PLOCK_DOT_H__ */