diff options
| author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
|---|---|---|
| committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
| commit | e05dacd71db0a5da7c1a44bcaab2a8a240b9c233 (patch) | |
| tree | 31382cf1c7d62c03126448affb2fc86e8c4aaa8b /include/uapi/linux/auto_fs.h | |
| parent | 3ab0b83bf6a1e834f4b884150d8012990c75d25d (diff) | |
| parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) | |
Merge commit 'v3.7-rc1' into stable/for-linus-3.7
* commit 'v3.7-rc1': (10892 commits)
Linux 3.7-rc1
x86, boot: Explicitly include autoconf.h for hostprogs
perf: Fix UAPI fallout
ARM: config: make sure that platforms are ordered by option string
ARM: config: sort select statements alphanumerically
UAPI: (Scripted) Disintegrate include/linux/byteorder
UAPI: (Scripted) Disintegrate include/linux
UAPI: Unexport linux/blk_types.h
UAPI: Unexport part of linux/ppp-comp.h
perf: Handle new rbtree implementation
procfs: don't need a PATH_MAX allocation to hold a string representation of an int
vfs: embed struct filename inside of names_cache allocation if possible
audit: make audit_inode take struct filename
vfs: make path_openat take a struct filename pointer
vfs: turn do_path_lookup into wrapper around struct filename variant
audit: allow audit code to satisfy getname requests from its names_list
vfs: define struct filename and have getname() return it
btrfs: Fix compilation with user namespace support enabled
userns: Fix posix_acl_file_xattr_userns gid conversion
userns: Properly print bluetooth socket uids
...
Diffstat (limited to 'include/uapi/linux/auto_fs.h')
| -rw-r--r-- | include/uapi/linux/auto_fs.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/include/uapi/linux/auto_fs.h b/include/uapi/linux/auto_fs.h new file mode 100644 index 000000000000..77cdba9df274 --- /dev/null +++ b/include/uapi/linux/auto_fs.h | |||
| @@ -0,0 +1,83 @@ | |||
| 1 | /* -*- linux-c -*- ------------------------------------------------------- * | ||
| 2 | * | ||
| 3 | * linux/include/linux/auto_fs.h | ||
| 4 | * | ||
| 5 | * Copyright 1997 Transmeta Corporation - All Rights Reserved | ||
| 6 | * | ||
| 7 | * This file is part of the Linux kernel and is made available under | ||
| 8 | * the terms of the GNU General Public License, version 2, or at your | ||
| 9 | * option, any later version, incorporated herein by reference. | ||
| 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 /* __KERNEL__ */ | ||
| 21 | |||
| 22 | |||
| 23 | /* This file describes autofs v3 */ | ||
| 24 | #define AUTOFS_PROTO_VERSION 3 | ||
| 25 | |||
| 26 | /* Range of protocol versions defined */ | ||
| 27 | #define AUTOFS_MAX_PROTO_VERSION AUTOFS_PROTO_VERSION | ||
| 28 | #define AUTOFS_MIN_PROTO_VERSION AUTOFS_PROTO_VERSION | ||
| 29 | |||
| 30 | /* | ||
| 31 | * Architectures where both 32- and 64-bit binaries can be executed | ||
| 32 | * on 64-bit kernels need this. This keeps the structure format | ||
| 33 | * uniform, and makes sure the wait_queue_token isn't too big to be | ||
| 34 | * passed back down to the kernel. | ||
| 35 | * | ||
| 36 | * This assumes that on these architectures: | ||
| 37 | * mode 32 bit 64 bit | ||
| 38 | * ------------------------- | ||
| 39 | * int 32 bit 32 bit | ||
| 40 | * long 32 bit 64 bit | ||
| 41 | * | ||
| 42 | * If so, 32-bit user-space code should be backwards compatible. | ||
| 43 | */ | ||
| 44 | |||
| 45 | #if defined(__sparc__) || defined(__mips__) || defined(__x86_64__) \ | ||
| 46 | || defined(__powerpc__) || defined(__s390__) | ||
| 47 | typedef unsigned int autofs_wqt_t; | ||
| 48 | #else | ||
| 49 | typedef unsigned long autofs_wqt_t; | ||
| 50 | #endif | ||
| 51 | |||
| 52 | /* Packet types */ | ||
| 53 | #define autofs_ptype_missing 0 /* Missing entry (mount request) */ | ||
| 54 | #define autofs_ptype_expire 1 /* Expire entry (umount request) */ | ||
| 55 | |||
| 56 | struct autofs_packet_hdr { | ||
| 57 | int proto_version; /* Protocol version */ | ||
| 58 | int type; /* Type of packet */ | ||
| 59 | }; | ||
| 60 | |||
| 61 | struct autofs_packet_missing { | ||
| 62 | struct autofs_packet_hdr hdr; | ||
| 63 | autofs_wqt_t wait_queue_token; | ||
| 64 | int len; | ||
| 65 | char name[NAME_MAX+1]; | ||
| 66 | }; | ||
| 67 | |||
| 68 | /* v3 expire (via ioctl) */ | ||
| 69 | struct autofs_packet_expire { | ||
| 70 | struct autofs_packet_hdr hdr; | ||
| 71 | int len; | ||
| 72 | char name[NAME_MAX+1]; | ||
| 73 | }; | ||
| 74 | |||
| 75 | #define AUTOFS_IOC_READY _IO(0x93,0x60) | ||
| 76 | #define AUTOFS_IOC_FAIL _IO(0x93,0x61) | ||
| 77 | #define AUTOFS_IOC_CATATONIC _IO(0x93,0x62) | ||
| 78 | #define AUTOFS_IOC_PROTOVER _IOR(0x93,0x63,int) | ||
| 79 | #define AUTOFS_IOC_SETTIMEOUT32 _IOWR(0x93,0x64,compat_ulong_t) | ||
| 80 | #define AUTOFS_IOC_SETTIMEOUT _IOWR(0x93,0x64,unsigned long) | ||
| 81 | #define AUTOFS_IOC_EXPIRE _IOR(0x93,0x65,struct autofs_packet_expire) | ||
| 82 | |||
| 83 | #endif /* _UAPI_LINUX_AUTO_FS_H */ | ||
