Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: dlmconstants.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
/******************************************************************************
[1] Fix | Delete
*******************************************************************************
[2] Fix | Delete
**
[3] Fix | Delete
** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
[4] Fix | Delete
** Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
[5] Fix | Delete
**
[6] Fix | Delete
** This copyrighted material is made available to anyone wishing to use,
[7] Fix | Delete
** modify, copy, or redistribute it subject to the terms and conditions
[8] Fix | Delete
** of the GNU General Public License v.2.
[9] Fix | Delete
**
[10] Fix | Delete
*******************************************************************************
[11] Fix | Delete
******************************************************************************/
[12] Fix | Delete
[13] Fix | Delete
#ifndef __DLMCONSTANTS_DOT_H__
[14] Fix | Delete
#define __DLMCONSTANTS_DOT_H__
[15] Fix | Delete
[16] Fix | Delete
/*
[17] Fix | Delete
* Constants used by DLM interface.
[18] Fix | Delete
*/
[19] Fix | Delete
[20] Fix | Delete
#define DLM_LOCKSPACE_LEN 64
[21] Fix | Delete
#define DLM_RESNAME_MAXLEN 64
[22] Fix | Delete
[23] Fix | Delete
[24] Fix | Delete
/*
[25] Fix | Delete
* Lock Modes
[26] Fix | Delete
*/
[27] Fix | Delete
[28] Fix | Delete
#define DLM_LOCK_IV (-1) /* invalid */
[29] Fix | Delete
#define DLM_LOCK_NL 0 /* null */
[30] Fix | Delete
#define DLM_LOCK_CR 1 /* concurrent read */
[31] Fix | Delete
#define DLM_LOCK_CW 2 /* concurrent write */
[32] Fix | Delete
#define DLM_LOCK_PR 3 /* protected read */
[33] Fix | Delete
#define DLM_LOCK_PW 4 /* protected write */
[34] Fix | Delete
#define DLM_LOCK_EX 5 /* exclusive */
[35] Fix | Delete
[36] Fix | Delete
[37] Fix | Delete
/*
[38] Fix | Delete
* Flags to dlm_lock
[39] Fix | Delete
*
[40] Fix | Delete
* DLM_LKF_NOQUEUE
[41] Fix | Delete
*
[42] Fix | Delete
* Do not queue the lock request on the wait queue if it cannot be granted
[43] Fix | Delete
* immediately. If the lock cannot be granted because of this flag, DLM will
[44] Fix | Delete
* either return -EAGAIN from the dlm_lock call or will return 0 from
[45] Fix | Delete
* dlm_lock and -EAGAIN in the lock status block when the AST is executed.
[46] Fix | Delete
*
[47] Fix | Delete
* DLM_LKF_CANCEL
[48] Fix | Delete
*
[49] Fix | Delete
* Used to cancel a pending lock request or conversion. A converting lock is
[50] Fix | Delete
* returned to its previously granted mode.
[51] Fix | Delete
*
[52] Fix | Delete
* DLM_LKF_CONVERT
[53] Fix | Delete
*
[54] Fix | Delete
* Indicates a lock conversion request. For conversions the name and namelen
[55] Fix | Delete
* are ignored and the lock ID in the LKSB is used to identify the lock.
[56] Fix | Delete
*
[57] Fix | Delete
* DLM_LKF_VALBLK
[58] Fix | Delete
*
[59] Fix | Delete
* Requests DLM to return the current contents of the lock value block in the
[60] Fix | Delete
* lock status block. When this flag is set in a lock conversion from PW or EX
[61] Fix | Delete
* modes, DLM assigns the value specified in the lock status block to the lock
[62] Fix | Delete
* value block of the lock resource. The LVB is a DLM_LVB_LEN size array
[63] Fix | Delete
* containing application-specific information.
[64] Fix | Delete
*
[65] Fix | Delete
* DLM_LKF_QUECVT
[66] Fix | Delete
*
[67] Fix | Delete
* Force a conversion request to be queued, even if it is compatible with
[68] Fix | Delete
* the granted modes of other locks on the same resource.
[69] Fix | Delete
*
[70] Fix | Delete
* DLM_LKF_IVVALBLK
[71] Fix | Delete
*
[72] Fix | Delete
* Invalidate the lock value block.
[73] Fix | Delete
*
[74] Fix | Delete
* DLM_LKF_CONVDEADLK
[75] Fix | Delete
*
[76] Fix | Delete
* Allows the dlm to resolve conversion deadlocks internally by demoting the
[77] Fix | Delete
* granted mode of a converting lock to NL. The DLM_SBF_DEMOTED flag is
[78] Fix | Delete
* returned for a conversion that's been effected by this.
[79] Fix | Delete
*
[80] Fix | Delete
* DLM_LKF_PERSISTENT
[81] Fix | Delete
*
[82] Fix | Delete
* Only relevant to locks originating in userspace. A persistent lock will not
[83] Fix | Delete
* be removed if the process holding the lock exits.
[84] Fix | Delete
*
[85] Fix | Delete
* DLM_LKF_NODLCKWT
[86] Fix | Delete
*
[87] Fix | Delete
* Do not cancel the lock if it gets into conversion deadlock.
[88] Fix | Delete
* Exclude this lock from being monitored due to DLM_LSFL_TIMEWARN.
[89] Fix | Delete
*
[90] Fix | Delete
* DLM_LKF_NODLCKBLK
[91] Fix | Delete
*
[92] Fix | Delete
* net yet implemented
[93] Fix | Delete
*
[94] Fix | Delete
* DLM_LKF_EXPEDITE
[95] Fix | Delete
*
[96] Fix | Delete
* Used only with new requests for NL mode locks. Tells the lock manager
[97] Fix | Delete
* to grant the lock, ignoring other locks in convert and wait queues.
[98] Fix | Delete
*
[99] Fix | Delete
* DLM_LKF_NOQUEUEBAST
[100] Fix | Delete
*
[101] Fix | Delete
* Send blocking AST's before returning -EAGAIN to the caller. It is only
[102] Fix | Delete
* used along with the NOQUEUE flag. Blocking AST's are not sent for failed
[103] Fix | Delete
* NOQUEUE requests otherwise.
[104] Fix | Delete
*
[105] Fix | Delete
* DLM_LKF_HEADQUE
[106] Fix | Delete
*
[107] Fix | Delete
* Add a lock to the head of the convert or wait queue rather than the tail.
[108] Fix | Delete
*
[109] Fix | Delete
* DLM_LKF_NOORDER
[110] Fix | Delete
*
[111] Fix | Delete
* Disregard the standard grant order rules and grant a lock as soon as it
[112] Fix | Delete
* is compatible with other granted locks.
[113] Fix | Delete
*
[114] Fix | Delete
* DLM_LKF_ORPHAN
[115] Fix | Delete
*
[116] Fix | Delete
* Acquire an orphan lock.
[117] Fix | Delete
*
[118] Fix | Delete
* DLM_LKF_ALTPR
[119] Fix | Delete
*
[120] Fix | Delete
* If the requested mode cannot be granted immediately, try to grant the lock
[121] Fix | Delete
* in PR mode instead. If this alternate mode is granted instead of the
[122] Fix | Delete
* requested mode, DLM_SBF_ALTMODE is returned in the lksb.
[123] Fix | Delete
*
[124] Fix | Delete
* DLM_LKF_ALTCW
[125] Fix | Delete
*
[126] Fix | Delete
* The same as ALTPR, but the alternate mode is CW.
[127] Fix | Delete
*
[128] Fix | Delete
* DLM_LKF_FORCEUNLOCK
[129] Fix | Delete
*
[130] Fix | Delete
* Unlock the lock even if it is converting or waiting or has sublocks.
[131] Fix | Delete
* Only really for use by the userland device.c code.
[132] Fix | Delete
*
[133] Fix | Delete
*/
[134] Fix | Delete
[135] Fix | Delete
#define DLM_LKF_NOQUEUE 0x00000001
[136] Fix | Delete
#define DLM_LKF_CANCEL 0x00000002
[137] Fix | Delete
#define DLM_LKF_CONVERT 0x00000004
[138] Fix | Delete
#define DLM_LKF_VALBLK 0x00000008
[139] Fix | Delete
#define DLM_LKF_QUECVT 0x00000010
[140] Fix | Delete
#define DLM_LKF_IVVALBLK 0x00000020
[141] Fix | Delete
#define DLM_LKF_CONVDEADLK 0x00000040
[142] Fix | Delete
#define DLM_LKF_PERSISTENT 0x00000080
[143] Fix | Delete
#define DLM_LKF_NODLCKWT 0x00000100
[144] Fix | Delete
#define DLM_LKF_NODLCKBLK 0x00000200
[145] Fix | Delete
#define DLM_LKF_EXPEDITE 0x00000400
[146] Fix | Delete
#define DLM_LKF_NOQUEUEBAST 0x00000800
[147] Fix | Delete
#define DLM_LKF_HEADQUE 0x00001000
[148] Fix | Delete
#define DLM_LKF_NOORDER 0x00002000
[149] Fix | Delete
#define DLM_LKF_ORPHAN 0x00004000
[150] Fix | Delete
#define DLM_LKF_ALTPR 0x00008000
[151] Fix | Delete
#define DLM_LKF_ALTCW 0x00010000
[152] Fix | Delete
#define DLM_LKF_FORCEUNLOCK 0x00020000
[153] Fix | Delete
#define DLM_LKF_TIMEOUT 0x00040000
[154] Fix | Delete
[155] Fix | Delete
/*
[156] Fix | Delete
* Some return codes that are not in errno.h
[157] Fix | Delete
*/
[158] Fix | Delete
[159] Fix | Delete
#define DLM_ECANCEL 0x10001
[160] Fix | Delete
#define DLM_EUNLOCK 0x10002
[161] Fix | Delete
[162] Fix | Delete
#endif /* __DLMCONSTANTS_DOT_H__ */
[163] Fix | Delete
[164] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function