~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/linux/auto_fs.h

Version: ~ [ 2.2.5 ] ~ [ 2.4.1 ] ~ [ 2.4.9 ] ~ [ 2.6.17.10 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  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 _LINUX_AUTO_FS_H
 15 #define _LINUX_AUTO_FS_H
 16 
 17 #include <linux/version.h>
 18 #include <linux/fs.h>
 19 #include <linux/limits.h>
 20 #include <linux/ioctl.h>
 21 #include <asm/types.h>
 22 
 23 #define AUTOFS_PROTO_VERSION 3
 24 
 25 /*
 26  * Architectures where both 32- and 64-bit binaries can be executed
 27  * on 64-bit kernels need this.  This keeps the structure format
 28  * uniform, and makes sure the wait_queue_token isn't too big to be
 29  * passed back down to the kernel.
 30  *
 31  * This assumes that on these architectures:
 32  * mode     32 bit    64 bit
 33  * -------------------------
 34  * int      32 bit    32 bit
 35  * long     32 bit    64 bit
 36  *
 37  * If so, 32-bit user-space code should be backwards compatible.
 38  */
 39 
 40 #if defined(__sparc__) || defined(__mips__)
 41 typedef unsigned int autofs_wqt_t;
 42 #else
 43 typedef unsigned long autofs_wqt_t;
 44 #endif
 45 
 46 enum autofs_packet_type {
 47         autofs_ptype_missing,   /* Missing entry (mount request) */
 48         autofs_ptype_expire,    /* Expire entry (umount request) */
 49 };
 50 
 51 struct autofs_packet_hdr {
 52         int proto_version;            /* Protocol version */
 53         enum autofs_packet_type type; /* Type of packet */
 54 };
 55 
 56 struct autofs_packet_missing {
 57         struct autofs_packet_hdr hdr;
 58         autofs_wqt_t wait_queue_token;
 59         int len;
 60         char name[NAME_MAX+1];
 61 };      
 62 
 63 struct autofs_packet_expire {
 64         struct autofs_packet_hdr hdr;
 65         int len;
 66         char name[NAME_MAX+1];
 67 };
 68 
 69 #define AUTOFS_IOC_READY      _IO(0x93,0x60)
 70 #define AUTOFS_IOC_FAIL       _IO(0x93,0x61)
 71 #define AUTOFS_IOC_CATATONIC  _IO(0x93,0x62)
 72 #define AUTOFS_IOC_PROTOVER   _IOR(0x93,0x63,int)
 73 #define AUTOFS_IOC_SETTIMEOUT _IOWR(0x93,0x64,unsigned long)
 74 #define AUTOFS_IOC_EXPIRE     _IOR(0x93,0x65,struct autofs_packet_expire)
 75 
 76 #ifdef __KERNEL__
 77 
 78 /* Init function */
 79 int init_autofs_fs(void);
 80 
 81 #endif /* __KERNEL__ */
 82 
 83 #endif /* _LINUX_AUTO_FS_H */
 84 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.