blob: e2cd337749011243b596c6ecd2b698c276e57880 [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_AUTO_FS4_H
20#define _LINUX_AUTO_FS4_H
21#include <linux/types.h>
22#include <linux/auto_fs.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#undef AUTOFS_PROTO_VERSION
25#undef AUTOFS_MIN_PROTO_VERSION
26#undef AUTOFS_MAX_PROTO_VERSION
27#define AUTOFS_PROTO_VERSION 5
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define AUTOFS_MIN_PROTO_VERSION 3
30#define AUTOFS_MAX_PROTO_VERSION 5
31#define AUTOFS_PROTO_SUBVERSION 2
32#define AUTOFS_EXP_IMMEDIATE 1
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define AUTOFS_EXP_LEAVES 2
35#define AUTOFS_TYPE_ANY 0U
36#define AUTOFS_TYPE_INDIRECT 1U
37#define AUTOFS_TYPE_DIRECT 2U
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define AUTOFS_TYPE_OFFSET 4U
40enum autofs_notify {
Tao Baod7db5942015-01-28 10:07:51 -080041 NFY_NONE,
42 NFY_MOUNT,
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 NFY_EXPIRE
Ben Cheng655a7c02013-10-16 16:09:24 -070045};
46#define autofs_ptype_expire_multi 2
47#define autofs_ptype_missing_indirect 3
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define autofs_ptype_expire_indirect 4
50#define autofs_ptype_missing_direct 5
51#define autofs_ptype_expire_direct 6
52struct autofs_packet_expire_multi {
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 struct autofs_packet_hdr hdr;
55 autofs_wqt_t wait_queue_token;
56 int len;
57 char name[NAME_MAX + 1];
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59};
60union autofs_packet_union {
Tao Baod7db5942015-01-28 10:07:51 -080061 struct autofs_packet_hdr hdr;
62 struct autofs_packet_missing missing;
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 struct autofs_packet_expire expire;
65 struct autofs_packet_expire_multi expire_multi;
Ben Cheng655a7c02013-10-16 16:09:24 -070066};
67struct autofs_v5_packet {
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 struct autofs_packet_hdr hdr;
70 autofs_wqt_t wait_queue_token;
71 __u32 dev;
72 __u64 ino;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 __u32 uid;
75 __u32 gid;
76 __u32 pid;
77 __u32 tgid;
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 __u32 len;
80 char name[NAME_MAX + 1];
Ben Cheng655a7c02013-10-16 16:09:24 -070081};
82typedef struct autofs_v5_packet autofs_packet_missing_indirect_t;
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84typedef struct autofs_v5_packet autofs_packet_expire_indirect_t;
85typedef struct autofs_v5_packet autofs_packet_missing_direct_t;
86typedef struct autofs_v5_packet autofs_packet_expire_direct_t;
87union autofs_v5_packet_union {
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 struct autofs_packet_hdr hdr;
90 struct autofs_v5_packet v5_packet;
91 autofs_packet_missing_indirect_t missing_indirect;
92 autofs_packet_expire_indirect_t expire_indirect;
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 autofs_packet_missing_direct_t missing_direct;
95 autofs_packet_expire_direct_t expire_direct;
Ben Cheng655a7c02013-10-16 16:09:24 -070096};
Tao Baod7db5942015-01-28 10:07:51 -080097#define AUTOFS_IOC_EXPIRE_MULTI _IOW(0x93, 0x66, int)
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99#define AUTOFS_IOC_EXPIRE_INDIRECT AUTOFS_IOC_EXPIRE_MULTI
100#define AUTOFS_IOC_EXPIRE_DIRECT AUTOFS_IOC_EXPIRE_MULTI
Tao Baod7db5942015-01-28 10:07:51 -0800101#define AUTOFS_IOC_PROTOSUBVER _IOR(0x93, 0x67, int)
102#define AUTOFS_IOC_ASKUMOUNT _IOR(0x93, 0x70, int)
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104#endif