1 /****************************************************************************
2 ****************************************************************************
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.
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef _LINUX_AUTO_FS_H
13 #define _LINUX_AUTO_FS_H
15 #include <linux/ioctl.h>
17 #define AUTOFS_PROTO_VERSION 3
19 #define AUTOFS_MAX_PROTO_VERSION AUTOFS_PROTO_VERSION
20 #define AUTOFS_MIN_PROTO_VERSION AUTOFS_PROTO_VERSION
22 #if defined(__sparc__) || defined(__mips__) || defined(__x86_64__) || defined(__powerpc__) || defined(__s390__)
23 typedef unsigned int autofs_wqt_t;
25 typedef unsigned long autofs_wqt_t;
28 #define autofs_ptype_missing 0
29 #define autofs_ptype_expire 1
31 struct autofs_packet_hdr {
36 struct autofs_packet_missing {
37 struct autofs_packet_hdr hdr;
38 autofs_wqt_t wait_queue_token;
40 char name[NAME_MAX+1];
43 struct autofs_packet_expire {
44 struct autofs_packet_hdr hdr;
46 char name[NAME_MAX+1];
49 #define AUTOFS_IOC_READY _IO(0x93,0x60)
50 #define AUTOFS_IOC_FAIL _IO(0x93,0x61)
51 #define AUTOFS_IOC_CATATONIC _IO(0x93,0x62)
52 #define AUTOFS_IOC_PROTOVER _IOR(0x93,0x63,int)
53 #define AUTOFS_IOC_SETTIMEOUT _IOWR(0x93,0x64,unsigned long)
54 #define AUTOFS_IOC_EXPIRE _IOR(0x93,0x65,struct autofs_packet_expire)