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 */ 7 #ifndef _LINUX_DLM_DEVICE_H 8 #define _LINUX_DLM_DEVICE_H 9 #include <linux/dlm.h> 10 #include <linux/types.h> 11 #define DLM_USER_LVB_LEN 32 12 #define DLM_DEVICE_VERSION_MAJOR 6 13 #define DLM_DEVICE_VERSION_MINOR 0 14 #define DLM_DEVICE_VERSION_PATCH 2 15 struct dlm_lock_params { 16 __u8 mode; 17 __u8 namelen; 18 __u16 unused; 19 __u32 flags; 20 __u32 lkid; 21 __u32 parent; 22 __u64 xid; 23 __u64 timeout; 24 void * castparam; 25 void * castaddr; 26 void * bastparam; 27 void * bastaddr; 28 struct dlm_lksb * lksb; 29 char lvb[DLM_USER_LVB_LEN]; 30 char name[]; 31 }; 32 struct dlm_lspace_params { 33 __u32 flags; 34 __u32 minor; 35 char name[]; 36 }; 37 struct dlm_purge_params { 38 __u32 nodeid; 39 __u32 pid; 40 }; 41 struct dlm_write_request { 42 __u32 version[3]; 43 __u8 cmd; 44 __u8 is64bit; 45 __u8 unused[2]; 46 union { 47 struct dlm_lock_params lock; 48 struct dlm_lspace_params lspace; 49 struct dlm_purge_params purge; 50 } i; 51 }; 52 struct dlm_device_version { 53 __u32 version[3]; 54 }; 55 struct dlm_lock_result { 56 __u32 version[3]; 57 __u32 length; 58 void * user_astaddr; 59 void * user_astparam; 60 struct dlm_lksb * user_lksb; 61 struct dlm_lksb lksb; 62 __u8 bast_mode; 63 __u8 unused[3]; 64 __u32 lvb_offset; 65 }; 66 #define DLM_USER_LOCK 1 67 #define DLM_USER_UNLOCK 2 68 #define DLM_USER_QUERY 3 69 #define DLM_USER_CREATE_LOCKSPACE 4 70 #define DLM_USER_REMOVE_LOCKSPACE 5 71 #define DLM_USER_PURGE 6 72 #define DLM_USER_DEADLOCK 7 73 #define DLM_USER_LSFLG_AUTOFREE 1 74 #define DLM_USER_LSFLG_FORCEFREE 2 75 #endif 76