| The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 1 | /**************************************************************************** | 
|  | 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 | **************************************************************************** | 
|  | 11 | ****************************************************************************/ | 
|  | 12 | #ifndef _LINUX_AUTO_FS_H | 
|  | 13 | #define _LINUX_AUTO_FS_H | 
|  | 14 |  | 
|  | 15 | #include <linux/ioctl.h> | 
|  | 16 |  | 
|  | 17 | #define AUTOFS_PROTO_VERSION 3 | 
|  | 18 |  | 
|  | 19 | #define AUTOFS_MAX_PROTO_VERSION AUTOFS_PROTO_VERSION | 
|  | 20 | #define AUTOFS_MIN_PROTO_VERSION AUTOFS_PROTO_VERSION | 
|  | 21 |  | 
|  | 22 | #if defined(__sparc__) || defined(__mips__) || defined(__x86_64__) || defined(__powerpc__) || defined(__s390__) | 
|  | 23 | typedef unsigned int autofs_wqt_t; | 
|  | 24 | #else | 
|  | 25 | typedef unsigned long autofs_wqt_t; | 
|  | 26 | #endif | 
|  | 27 |  | 
|  | 28 | #define autofs_ptype_missing 0 | 
|  | 29 | #define autofs_ptype_expire 1 | 
|  | 30 |  | 
|  | 31 | struct autofs_packet_hdr { | 
|  | 32 | int proto_version; | 
|  | 33 | int type; | 
|  | 34 | }; | 
|  | 35 |  | 
|  | 36 | struct autofs_packet_missing { | 
|  | 37 | struct autofs_packet_hdr hdr; | 
|  | 38 | autofs_wqt_t wait_queue_token; | 
|  | 39 | int len; | 
|  | 40 | char name[NAME_MAX+1]; | 
|  | 41 | }; | 
|  | 42 |  | 
|  | 43 | struct autofs_packet_expire { | 
|  | 44 | struct autofs_packet_hdr hdr; | 
|  | 45 | int len; | 
|  | 46 | char name[NAME_MAX+1]; | 
|  | 47 | }; | 
|  | 48 |  | 
|  | 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) | 
|  | 55 |  | 
|  | 56 | #endif |