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