Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ***   To edit the content of this header, modify the corresponding
     11  ***   source file (e.g. under external/kernel-headers/original/) then
     12  ***   run bionic/libc/kernel/tools/update_all.py
     13  ***
     14  ***   Any manual change here will be lost the next time this script will
     15  ***   be run. You've been warned!
     16  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef _LINUX_DLM_DEVICE_H
     20 #define _LINUX_DLM_DEVICE_H
     21 #include <linux/dlm.h>
     22 #include <linux/types.h>
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #define DLM_USER_LVB_LEN 32
     25 #define DLM_DEVICE_VERSION_MAJOR 6
     26 #define DLM_DEVICE_VERSION_MINOR 0
     27 #define DLM_DEVICE_VERSION_PATCH 1
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 struct dlm_lock_params {
     30  __u8 mode;
     31  __u8 namelen;
     32  __u16 unused;
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34  __u32 flags;
     35  __u32 lkid;
     36  __u32 parent;
     37  __u64 xid;
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39  __u64 timeout;
     40  void __user *castparam;
     41  void __user *castaddr;
     42  void __user *bastparam;
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44  void __user *bastaddr;
     45  struct dlm_lksb __user *lksb;
     46  char lvb[DLM_USER_LVB_LEN];
     47  char name[0];
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 };
     50 struct dlm_lspace_params {
     51  __u32 flags;
     52  __u32 minor;
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54  char name[0];
     55 };
     56 struct dlm_purge_params {
     57  __u32 nodeid;
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59  __u32 pid;
     60 };
     61 struct dlm_write_request {
     62  __u32 version[3];
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64  __u8 cmd;
     65  __u8 is64bit;
     66  __u8 unused[2];
     67  union {
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69  struct dlm_lock_params lock;
     70  struct dlm_lspace_params lspace;
     71  struct dlm_purge_params purge;
     72  } i;
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74 };
     75 struct dlm_device_version {
     76  __u32 version[3];
     77 };
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79 struct dlm_lock_result {
     80  __u32 version[3];
     81  __u32 length;
     82  void __user * user_astaddr;
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84  void __user * user_astparam;
     85  struct dlm_lksb __user * user_lksb;
     86  struct dlm_lksb lksb;
     87  __u8 bast_mode;
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89  __u8 unused[3];
     90  __u32 lvb_offset;
     91 };
     92 #define DLM_USER_LOCK 1
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94 #define DLM_USER_UNLOCK 2
     95 #define DLM_USER_QUERY 3
     96 #define DLM_USER_CREATE_LOCKSPACE 4
     97 #define DLM_USER_REMOVE_LOCKSPACE 5
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99 #define DLM_USER_PURGE 6
    100 #define DLM_USER_DEADLOCK 7
    101 #define DLM_USER_LSFLG_AUTOFREE 1
    102 #define DLM_USER_LSFLG_FORCEFREE 2
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104 #endif
    105