auto_fs.h
01: 
02: 
03: 
04: 
05: 
06: 
07: 
08: 
09: 
10: 
11: 
12: 
13: 
14: #ifndef _LINUX_AUTO_FS_H
15: #define _LINUX_AUTO_FS_H
16: 
17: #include <linux/types.h>
18: #include <sys/ioctl.h>
19: 
20: 
21: #define AUTOFS_PROTO_VERSION    3
22: 
23: 
24: #define AUTOFS_MAX_PROTO_VERSION        AUTOFS_PROTO_VERSION
25: #define AUTOFS_MIN_PROTO_VERSION        AUTOFS_PROTO_VERSION
26: 
27: 
28: 
29: 
30: 
31: 
32: 
33: 
34: 
35: 
36: 
37: 
38: 
39: 
40: 
41: 
42: #if defined(__sparc__) || defined(__mips__) || defined(__x86_64__) \
43:  || defined(__powerpc__) || defined(__s390__)
44: typedef unsigned int autofs_wqt_t;
45: #else
46: typedef unsigned long autofs_wqt_t;
47: #endif
48: 
49: 
50: #define autofs_ptype_missing    0       
51: #define autofs_ptype_expire     1       
52: 
53: struct autofs_packet_hdr {
54:         int proto_version;              
55:         int type;                       
56: };
57: 
58: struct autofs_packet_missing {
59:         struct autofs_packet_hdr hdr;
60:         autofs_wqt_t wait_queue_token;
61:         int len;
62:         char name[NAME_MAX+1];
63: };      
64: 
65: 
66: struct autofs_packet_expire {
67:         struct autofs_packet_hdr hdr;
68:         int len;
69:         char name[NAME_MAX+1];
70: };
71: 
72: #define AUTOFS_IOC_READY      _IO(0x93,0x60)
73: #define AUTOFS_IOC_FAIL       _IO(0x93,0x61)
74: #define AUTOFS_IOC_CATATONIC  _IO(0x93,0x62)
75: #define AUTOFS_IOC_PROTOVER   _IOR(0x93,0x63,int)
76: #define AUTOFS_IOC_SETTIMEOUT32 _IOWR(0x93,0x64,compat_ulong_t)
77: #define AUTOFS_IOC_SETTIMEOUT _IOWR(0x93,0x64,unsigned long)
78: #define AUTOFS_IOC_EXPIRE     _IOR(0x93,0x65,struct autofs_packet_expire)
79: 
80: #endif 
81: 
      
      
      
      
   
      
      
         
            
            © Andrew Scott 2006 -
            2025, 
            All Rights Reserved