Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef __DLMCONSTANTS_DOT_H__ |
| 8 | #define __DLMCONSTANTS_DOT_H__ |
| 9 | #define DLM_LOCKSPACE_LEN 64 |
| 10 | #define DLM_RESNAME_MAXLEN 64 |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 11 | #define DLM_LOCK_IV (- 1) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 12 | #define DLM_LOCK_NL 0 |
| 13 | #define DLM_LOCK_CR 1 |
| 14 | #define DLM_LOCK_CW 2 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 15 | #define DLM_LOCK_PR 3 |
| 16 | #define DLM_LOCK_PW 4 |
| 17 | #define DLM_LOCK_EX 5 |
| 18 | #define DLM_LKF_NOQUEUE 0x00000001 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 19 | #define DLM_LKF_CANCEL 0x00000002 |
| 20 | #define DLM_LKF_CONVERT 0x00000004 |
| 21 | #define DLM_LKF_VALBLK 0x00000008 |
| 22 | #define DLM_LKF_QUECVT 0x00000010 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define DLM_LKF_IVVALBLK 0x00000020 |
| 24 | #define DLM_LKF_CONVDEADLK 0x00000040 |
| 25 | #define DLM_LKF_PERSISTENT 0x00000080 |
| 26 | #define DLM_LKF_NODLCKWT 0x00000100 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define DLM_LKF_NODLCKBLK 0x00000200 |
| 28 | #define DLM_LKF_EXPEDITE 0x00000400 |
| 29 | #define DLM_LKF_NOQUEUEBAST 0x00000800 |
| 30 | #define DLM_LKF_HEADQUE 0x00001000 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #define DLM_LKF_NOORDER 0x00002000 |
| 32 | #define DLM_LKF_ORPHAN 0x00004000 |
| 33 | #define DLM_LKF_ALTPR 0x00008000 |
| 34 | #define DLM_LKF_ALTCW 0x00010000 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | #define DLM_LKF_FORCEUNLOCK 0x00020000 |
| 36 | #define DLM_LKF_TIMEOUT 0x00040000 |
| 37 | #define DLM_ECANCEL 0x10001 |
| 38 | #define DLM_EUNLOCK 0x10002 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 39 | #endif |