Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * Copyright (C) 2005-2008 Red Hat, Inc.  All rights reserved.
0004  *
0005  * This copyrighted material is made available to anyone wishing to use,
0006  * modify, copy, or redistribute it subject to the terms and conditions
0007  * of the GNU General Public License v.2.
0008  */
0009 
0010 #ifndef _UAPI__DLM_PLOCK_DOT_H__
0011 #define _UAPI__DLM_PLOCK_DOT_H__
0012 
0013 #include <linux/types.h>
0014 
0015 #define DLM_PLOCK_MISC_NAME     "dlm_plock"
0016 
0017 #define DLM_PLOCK_VERSION_MAJOR 1
0018 #define DLM_PLOCK_VERSION_MINOR 2
0019 #define DLM_PLOCK_VERSION_PATCH 0
0020 
0021 enum {
0022     DLM_PLOCK_OP_LOCK = 1,
0023     DLM_PLOCK_OP_UNLOCK,
0024     DLM_PLOCK_OP_GET,
0025 };
0026 
0027 #define DLM_PLOCK_FL_CLOSE 1
0028 
0029 struct dlm_plock_info {
0030     __u32 version[3];
0031     __u8 optype;
0032     __u8 ex;
0033     __u8 wait;
0034     __u8 flags;
0035     __u32 pid;
0036     __s32 nodeid;
0037     __s32 rv;
0038     __u32 fsid;
0039     __u64 number;
0040     __u64 start;
0041     __u64 end;
0042     __u64 owner;
0043 };
0044 
0045 
0046 #endif /* _UAPI__DLM_PLOCK_DOT_H__ */