root/include/uapi/linux/dlm_plock.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
   2 /*
   3  * Copyright (C) 2005-2008 Red Hat, Inc.  All rights reserved.
   4  *
   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  */
   9 
  10 #ifndef _UAPI__DLM_PLOCK_DOT_H__
  11 #define _UAPI__DLM_PLOCK_DOT_H__
  12 
  13 #include <linux/types.h>
  14 
  15 #define DLM_PLOCK_MISC_NAME             "dlm_plock"
  16 
  17 #define DLM_PLOCK_VERSION_MAJOR 1
  18 #define DLM_PLOCK_VERSION_MINOR 2
  19 #define DLM_PLOCK_VERSION_PATCH 0
  20 
  21 enum {
  22         DLM_PLOCK_OP_LOCK = 1,
  23         DLM_PLOCK_OP_UNLOCK,
  24         DLM_PLOCK_OP_GET,
  25 };
  26 
  27 #define DLM_PLOCK_FL_CLOSE 1
  28 
  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;
  43 };
  44 
  45 
  46 #endif /* _UAPI__DLM_PLOCK_DOT_H__ */

/* [<][>][^][v][top][bottom][index][help] */