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 _UAPI__DLM_PLOCK_DOT_H__ |
| 8 | #define _UAPI__DLM_PLOCK_DOT_H__ |
| 9 | #include <linux/types.h> |
| 10 | #define DLM_PLOCK_MISC_NAME "dlm_plock" |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 11 | #define DLM_PLOCK_VERSION_MAJOR 1 |
| 12 | #define DLM_PLOCK_VERSION_MINOR 2 |
| 13 | #define DLM_PLOCK_VERSION_PATCH 0 |
| 14 | enum { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 15 | DLM_PLOCK_OP_LOCK = 1, |
| 16 | DLM_PLOCK_OP_UNLOCK, |
| 17 | DLM_PLOCK_OP_GET, |
Christopher Ferris | 67d1e5e | 2023-10-31 13:36:37 -0700 | [diff] [blame] | 18 | DLM_PLOCK_OP_CANCEL, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 19 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 20 | #define DLM_PLOCK_FL_CLOSE 1 |
| 21 | struct dlm_plock_info { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 22 | __u32 version[3]; |
| 23 | __u8 optype; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 24 | __u8 ex; |
| 25 | __u8 wait; |
| 26 | __u8 flags; |
| 27 | __u32 pid; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 28 | __s32 nodeid; |
| 29 | __s32 rv; |
| 30 | __u32 fsid; |
| 31 | __u64 number; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 32 | __u64 start; |
| 33 | __u64 end; |
| 34 | __u64 owner; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | }; |
Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 36 | #endif |