blob: 196bb86c72cb4160d88101b6db7fb739391d3223 [file] [log] [blame]
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001/****************************************************************************
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 _UAPI_LINUX_AUTO_DEV_IOCTL_H
20#define _UAPI_LINUX_AUTO_DEV_IOCTL_H
21#include <linux/auto_fs.h>
22#include <linux/string.h>
Christopher Ferris6a9755d2017-01-13 14:09:31 -080023#define AUTOFS_DEVICE_NAME "autofs"
24#define AUTOFS_DEV_IOCTL_VERSION_MAJOR 1
Christopher Ferris1308ad32017-11-14 17:32:13 -080025#define AUTOFS_DEV_IOCTL_VERSION_MINOR 1
Christopher Ferris6a9755d2017-01-13 14:09:31 -080026#define AUTOFS_DEV_IOCTL_SIZE sizeof(struct autofs_dev_ioctl)
Christopher Ferris6a9755d2017-01-13 14:09:31 -080027struct args_protover {
28 __u32 version;
29};
30struct args_protosubver {
Christopher Ferris6a9755d2017-01-13 14:09:31 -080031 __u32 sub_version;
32};
33struct args_openmount {
34 __u32 devid;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080035};
36struct args_ready {
37 __u32 token;
38};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080039struct args_fail {
40 __u32 token;
41 __s32 status;
42};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080043struct args_setpipefd {
44 __s32 pipefd;
45};
46struct args_timeout {
Christopher Ferris6a9755d2017-01-13 14:09:31 -080047 __u64 timeout;
48};
49struct args_requester {
50 __u32 uid;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080051 __u32 gid;
52};
53struct args_expire {
54 __u32 how;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080055};
56struct args_askumount {
57 __u32 may_umount;
58};
Christopher Ferris6a9755d2017-01-13 14:09:31 -080059struct args_ismountpoint {
60 union {
61 struct args_in {
62 __u32 type;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080063 } in;
64 struct args_out {
65 __u32 devid;
66 __u32 magic;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080067 } out;
68 };
69};
70struct autofs_dev_ioctl {
Christopher Ferris6a9755d2017-01-13 14:09:31 -080071 __u32 ver_major;
72 __u32 ver_minor;
73 __u32 size;
74 __s32 ioctlfd;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080075 union {
76 struct args_protover protover;
77 struct args_protosubver protosubver;
78 struct args_openmount openmount;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080079 struct args_ready ready;
80 struct args_fail fail;
81 struct args_setpipefd setpipefd;
82 struct args_timeout timeout;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080083 struct args_requester requester;
84 struct args_expire expire;
85 struct args_askumount askumount;
86 struct args_ismountpoint ismountpoint;
Christopher Ferris6a9755d2017-01-13 14:09:31 -080087 };
Christopher Ferris8666d042023-09-06 14:55:31 -070088 char path[];
Christopher Ferris6a9755d2017-01-13 14:09:31 -080089};
90enum {
Christopher Ferris6a9755d2017-01-13 14:09:31 -080091 AUTOFS_DEV_IOCTL_VERSION_CMD = 0x71,
92 AUTOFS_DEV_IOCTL_PROTOVER_CMD,
93 AUTOFS_DEV_IOCTL_PROTOSUBVER_CMD,
94 AUTOFS_DEV_IOCTL_OPENMOUNT_CMD,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080095 AUTOFS_DEV_IOCTL_CLOSEMOUNT_CMD,
96 AUTOFS_DEV_IOCTL_READY_CMD,
97 AUTOFS_DEV_IOCTL_FAIL_CMD,
98 AUTOFS_DEV_IOCTL_SETPIPEFD_CMD,
Christopher Ferris6a9755d2017-01-13 14:09:31 -080099 AUTOFS_DEV_IOCTL_CATATONIC_CMD,
100 AUTOFS_DEV_IOCTL_TIMEOUT_CMD,
101 AUTOFS_DEV_IOCTL_REQUESTER_CMD,
102 AUTOFS_DEV_IOCTL_EXPIRE_CMD,
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800103 AUTOFS_DEV_IOCTL_ASKUMOUNT_CMD,
104 AUTOFS_DEV_IOCTL_ISMOUNTPOINT_CMD,
105};
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800106#define AUTOFS_DEV_IOCTL_VERSION _IOWR(AUTOFS_IOCTL, AUTOFS_DEV_IOCTL_VERSION_CMD, struct autofs_dev_ioctl)
107#define AUTOFS_DEV_IOCTL_PROTOVER _IOWR(AUTOFS_IOCTL, AUTOFS_DEV_IOCTL_PROTOVER_CMD, struct autofs_dev_ioctl)
108#define AUTOFS_DEV_IOCTL_PROTOSUBVER _IOWR(AUTOFS_IOCTL, AUTOFS_DEV_IOCTL_PROTOSUBVER_CMD, struct autofs_dev_ioctl)
109#define AUTOFS_DEV_IOCTL_OPENMOUNT _IOWR(AUTOFS_IOCTL, AUTOFS_DEV_IOCTL_OPENMOUNT_CMD, struct autofs_dev_ioctl)
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800110#define AUTOFS_DEV_IOCTL_CLOSEMOUNT _IOWR(AUTOFS_IOCTL, AUTOFS_DEV_IOCTL_CLOSEMOUNT_CMD, struct autofs_dev_ioctl)
111#define AUTOFS_DEV_IOCTL_READY _IOWR(AUTOFS_IOCTL, AUTOFS_DEV_IOCTL_READY_CMD, struct autofs_dev_ioctl)
112#define AUTOFS_DEV_IOCTL_FAIL _IOWR(AUTOFS_IOCTL, AUTOFS_DEV_IOCTL_FAIL_CMD, struct autofs_dev_ioctl)
113#define AUTOFS_DEV_IOCTL_SETPIPEFD _IOWR(AUTOFS_IOCTL, AUTOFS_DEV_IOCTL_SETPIPEFD_CMD, struct autofs_dev_ioctl)
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800114#define AUTOFS_DEV_IOCTL_CATATONIC _IOWR(AUTOFS_IOCTL, AUTOFS_DEV_IOCTL_CATATONIC_CMD, struct autofs_dev_ioctl)
115#define AUTOFS_DEV_IOCTL_TIMEOUT _IOWR(AUTOFS_IOCTL, AUTOFS_DEV_IOCTL_TIMEOUT_CMD, struct autofs_dev_ioctl)
116#define AUTOFS_DEV_IOCTL_REQUESTER _IOWR(AUTOFS_IOCTL, AUTOFS_DEV_IOCTL_REQUESTER_CMD, struct autofs_dev_ioctl)
117#define AUTOFS_DEV_IOCTL_EXPIRE _IOWR(AUTOFS_IOCTL, AUTOFS_DEV_IOCTL_EXPIRE_CMD, struct autofs_dev_ioctl)
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800118#define AUTOFS_DEV_IOCTL_ASKUMOUNT _IOWR(AUTOFS_IOCTL, AUTOFS_DEV_IOCTL_ASKUMOUNT_CMD, struct autofs_dev_ioctl)
119#define AUTOFS_DEV_IOCTL_ISMOUNTPOINT _IOWR(AUTOFS_IOCTL, AUTOFS_DEV_IOCTL_ISMOUNTPOINT_CMD, struct autofs_dev_ioctl)
120#endif