1
2
3
4
5
6
7
8
9
10
11#ifndef _UAPI_LINUX_AUTO_FS_H
12#define _UAPI_LINUX_AUTO_FS_H
13
14#include <linux/types.h>
15#ifndef __KERNEL__
16#include <sys/ioctl.h>
17#endif
18
19
20
21#define AUTOFS_PROTO_VERSION 3
22
23
24#define AUTOFS_MAX_PROTO_VERSION AUTOFS_PROTO_VERSION
25#define AUTOFS_MIN_PROTO_VERSION AUTOFS_PROTO_VERSION
26
27
28
29
30
31
32
33
34#if defined(__ia64__) || defined(__alpha__)
35typedef unsigned long autofs_wqt_t;
36#else
37typedef unsigned int autofs_wqt_t;
38#endif
39
40
41#define autofs_ptype_missing 0
42#define autofs_ptype_expire 1
43
44struct autofs_packet_hdr {
45 int proto_version;
46 int type;
47};
48
49struct autofs_packet_missing {
50 struct autofs_packet_hdr hdr;
51 autofs_wqt_t wait_queue_token;
52 int len;
53 char name[NAME_MAX+1];
54};
55
56
57struct autofs_packet_expire {
58 struct autofs_packet_hdr hdr;
59 int len;
60 char name[NAME_MAX+1];
61};
62
63#define AUTOFS_IOC_READY _IO(0x93, 0x60)
64#define AUTOFS_IOC_FAIL _IO(0x93, 0x61)
65#define AUTOFS_IOC_CATATONIC _IO(0x93, 0x62)
66#define AUTOFS_IOC_PROTOVER _IOR(0x93, 0x63, int)
67#define AUTOFS_IOC_SETTIMEOUT32 _IOWR(0x93, 0x64, compat_ulong_t)
68#define AUTOFS_IOC_SETTIMEOUT _IOWR(0x93, 0x64, unsigned long)
69#define AUTOFS_IOC_EXPIRE _IOR(0x93, 0x65, struct autofs_packet_expire)
70
71#endif
72