blob: c496d8d12d396b31e2fe5f2cf9fb9891c32fd8d2 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 */
29struct dlm_lock_params {
Tao Baod7db5942015-01-28 10:07:51 -080030 __u8 mode;
31 __u8 namelen;
32 __u16 unused;
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 __u32 flags;
35 __u32 lkid;
36 __u32 parent;
37 __u64 xid;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 __u64 timeout;
40 void __user * castparam;
41 void __user * castaddr;
42 void __user * bastparam;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 void __user * bastaddr;
45 struct dlm_lksb __user * lksb;
46 char lvb[DLM_USER_LVB_LEN];
47 char name[0];
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49};
50struct dlm_lspace_params {
Tao Baod7db5942015-01-28 10:07:51 -080051 __u32 flags;
52 __u32 minor;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 char name[0];
Ben Cheng655a7c02013-10-16 16:09:24 -070055};
56struct dlm_purge_params {
Tao Baod7db5942015-01-28 10:07:51 -080057 __u32 nodeid;
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 __u32 pid;
Ben Cheng655a7c02013-10-16 16:09:24 -070060};
61struct dlm_write_request {
Tao Baod7db5942015-01-28 10:07:51 -080062 __u32 version[3];
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 __u8 cmd;
65 __u8 is64bit;
66 __u8 unused[2];
67 union {
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 struct dlm_lock_params lock;
70 struct dlm_lspace_params lspace;
71 struct dlm_purge_params purge;
72 } i;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74};
75struct dlm_device_version {
Tao Baod7db5942015-01-28 10:07:51 -080076 __u32 version[3];
Ben Cheng655a7c02013-10-16 16:09:24 -070077};
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79struct dlm_lock_result {
Tao Baod7db5942015-01-28 10:07:51 -080080 __u32 version[3];
81 __u32 length;
82 void __user * user_astaddr;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 void __user * user_astparam;
85 struct dlm_lksb __user * user_lksb;
86 struct dlm_lksb lksb;
87 __u8 bast_mode;
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 __u8 unused[3];
90 __u32 lvb_offset;
Ben Cheng655a7c02013-10-16 16:09:24 -070091};
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