~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/dlm.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/uapi/linux/dlm.h (Version linux-6.11.5) and /include/uapi/linux/dlm.h (Version linux-4.4.302)


  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux << 
  2 /*********************************************      1 /******************************************************************************
  3 **********************************************      2 *******************************************************************************
  4 **                                                  3 **
  5 **  Copyright (C) Sistina Software, Inc.  1997      4 **  Copyright (C) Sistina Software, Inc.  1997-2003  All rights reserved.
  6 **  Copyright (C) 2004-2011 Red Hat, Inc.  All      5 **  Copyright (C) 2004-2011 Red Hat, Inc.  All rights reserved.
  7 **                                                  6 **
  8 **  This copyrighted material is made availabl      7 **  This copyrighted material is made available to anyone wishing to use,
  9 **  modify, copy, or redistribute it subject t      8 **  modify, copy, or redistribute it subject to the terms and conditions
 10 **  of the GNU General Public License v.2.          9 **  of the GNU General Public License v.2.
 11 **                                                 10 **
 12 **********************************************     11 *******************************************************************************
 13 **********************************************     12 ******************************************************************************/
 14                                                    13 
 15 #ifndef _UAPI__DLM_DOT_H__                         14 #ifndef _UAPI__DLM_DOT_H__
 16 #define _UAPI__DLM_DOT_H__                         15 #define _UAPI__DLM_DOT_H__
 17                                                    16 
 18 /*                                                 17 /*
 19  * Interface to Distributed Lock Manager (DLM)     18  * Interface to Distributed Lock Manager (DLM)
 20  * routines and structures to use DLM lockspac     19  * routines and structures to use DLM lockspaces
 21  */                                                20  */
 22                                                    21 
 23 /* Lock levels and flags are here */               22 /* Lock levels and flags are here */
 24 #include <linux/dlmconstants.h>                    23 #include <linux/dlmconstants.h>
 25 #include <linux/types.h>                           24 #include <linux/types.h>
 26                                                    25 
 27 typedef void dlm_lockspace_t;                      26 typedef void dlm_lockspace_t;
 28                                                    27 
 29 /*                                                 28 /*
 30  * Lock status block                               29  * Lock status block
 31  *                                                 30  *
 32  * Use this structure to specify the contents      31  * Use this structure to specify the contents of the lock value block.  For a
 33  * conversion request, this structure is used      32  * conversion request, this structure is used to specify the lock ID of the
 34  * lock.  DLM writes the status of the lock re     33  * lock.  DLM writes the status of the lock request and the lock ID assigned
 35  * to the request in the lock status block.        34  * to the request in the lock status block.
 36  *                                                 35  *
 37  * sb_lkid: the returned lock ID.  It is set o     36  * sb_lkid: the returned lock ID.  It is set on new (non-conversion) requests.
 38  * It is available when dlm_lock returns.          37  * It is available when dlm_lock returns.
 39  *                                                 38  *
 40  * sb_lvbptr: saves or returns the contents of     39  * sb_lvbptr: saves or returns the contents of the lock's LVB according to rules
 41  * shown for the DLM_LKF_VALBLK flag.              40  * shown for the DLM_LKF_VALBLK flag.
 42  *                                                 41  *
 43  * sb_flags: DLM_SBF_DEMOTED is returned if in     42  * sb_flags: DLM_SBF_DEMOTED is returned if in the process of promoting a lock,
 44  * it was first demoted to NL to avoid convers     43  * it was first demoted to NL to avoid conversion deadlock.
 45  * DLM_SBF_VALNOTVALID is returned if the reso     44  * DLM_SBF_VALNOTVALID is returned if the resource's LVB is marked invalid.
 46  *                                                 45  *
 47  * sb_status: the returned status of the lock      46  * sb_status: the returned status of the lock request set prior to AST
 48  * execution.  Possible return values:             47  * execution.  Possible return values:
 49  *                                                 48  *
 50  * 0 if lock request was successful                49  * 0 if lock request was successful
 51  * -EAGAIN if request would block and is flagg     50  * -EAGAIN if request would block and is flagged DLM_LKF_NOQUEUE
 52  * -DLM_EUNLOCK if unlock request was successf     51  * -DLM_EUNLOCK if unlock request was successful
 53  * -DLM_ECANCEL if a cancel completed successf     52  * -DLM_ECANCEL if a cancel completed successfully
 54  * -EDEADLK if a deadlock was detected             53  * -EDEADLK if a deadlock was detected
 55  * -ETIMEDOUT if the lock request was canceled     54  * -ETIMEDOUT if the lock request was canceled due to a timeout
 56  */                                                55  */
 57                                                    56 
 58 #define DLM_SBF_DEMOTED         0x01               57 #define DLM_SBF_DEMOTED         0x01
 59 #define DLM_SBF_VALNOTVALID     0x02               58 #define DLM_SBF_VALNOTVALID     0x02
 60 #define DLM_SBF_ALTMODE         0x04               59 #define DLM_SBF_ALTMODE         0x04
 61                                                    60 
 62 struct dlm_lksb {                                  61 struct dlm_lksb {
 63         int      sb_status;                        62         int      sb_status;
 64         __u32    sb_lkid;                          63         __u32    sb_lkid;
 65         char     sb_flags;                         64         char     sb_flags;
 66         char *   sb_lvbptr;                        65         char *   sb_lvbptr;
 67 };                                                 66 };
 68                                                    67 
 69 /* dlm_new_lockspace() flags */                    68 /* dlm_new_lockspace() flags */
 70                                                    69 
 71 /* DLM_LSFL_TIMEWARN is deprecated and reserve << 
 72 #define DLM_LSFL_TIMEWARN       0x00000002         70 #define DLM_LSFL_TIMEWARN       0x00000002
                                                   >>  71 #define DLM_LSFL_FS             0x00000004
 73 #define DLM_LSFL_NEWEXCL        0x00000008         72 #define DLM_LSFL_NEWEXCL        0x00000008
 74 /* currently reserved due in-kernel use */     << 
 75 #define __DLM_LSFL_RESERVED0    0x00000010     << 
 76                                                    73 
 77                                                    74 
 78 #endif /* _UAPI__DLM_DOT_H__ */                    75 #endif /* _UAPI__DLM_DOT_H__ */
 79                                                    76 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php