blob: 3711cc4556043dd364461c6811a3cb4cdc94a032 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -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 ****************************************************************************
11 ****************************************************************************/
12#ifndef _LINUX_AUTO_FS_H
13#define _LINUX_AUTO_FS_H
Ben Cheng4b29af02012-03-07 16:14:53 -080014
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080015#include <linux/ioctl.h>
Ben Cheng4b29af02012-03-07 16:14:53 -080016
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017#define AUTOFS_PROTO_VERSION 3
Ben Cheng4b29af02012-03-07 16:14:53 -080018
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080019#define AUTOFS_MAX_PROTO_VERSION AUTOFS_PROTO_VERSION
20#define AUTOFS_MIN_PROTO_VERSION AUTOFS_PROTO_VERSION
Ben Cheng4b29af02012-03-07 16:14:53 -080021
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080022#if defined(__sparc__) || defined(__mips__) || defined(__x86_64__) || defined(__powerpc__) || defined(__s390__)
23typedef unsigned int autofs_wqt_t;
24#else
25typedef unsigned long autofs_wqt_t;
26#endif
Ben Cheng4b29af02012-03-07 16:14:53 -080027
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080028#define autofs_ptype_missing 0
29#define autofs_ptype_expire 1
Ben Cheng4b29af02012-03-07 16:14:53 -080030
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080031struct autofs_packet_hdr {
32 int proto_version;
33 int type;
34};
Ben Cheng4b29af02012-03-07 16:14:53 -080035
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080036struct 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};
Ben Cheng4b29af02012-03-07 16:14:53 -080042
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080043struct autofs_packet_expire {
44 struct autofs_packet_hdr hdr;
45 int len;
46 char name[NAME_MAX+1];
47};
Ben Cheng4b29af02012-03-07 16:14:53 -080048
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080049#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)
Ben Cheng4b29af02012-03-07 16:14:53 -080055
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080056#endif