1 #ifndef _LINUX_PROC_FS_H
2 #define _LINUX_PROC_FS_H
3
4 #include <linux/config.h>
5
6
7
8
9
10 enum root_directory_inos {
11 PROC_ROOT_INO = 1,
12 PROC_LOADAVG,
13 PROC_UPTIME,
14 PROC_MEMINFO,
15 PROC_KMSG,
16 PROC_VERSION,
17 PROC_CPUINFO,
18 PROC_SELF,
19 PROC_NET,
20 #ifdef CONFIG_DEBUG_MALLOC
21 PROC_MALLOC,
22 #endif
23 PROC_KCORE,
24 PROC_MODULES,
25 PROC_STAT,
26 PROC_DEVICES,
27 PROC_INTERRUPTS,
28 PROC_FILESYSTEMS,
29 PROC_KSYMS,
30 PROC_DMA,
31 PROC_IOPORTS,
32 PROC_PROFILE
33 };
34
35 enum pid_directory_inos {
36 PROC_PID_INO = 2,
37 PROC_PID_MEM,
38 PROC_PID_CWD,
39 PROC_PID_ROOT,
40 PROC_PID_EXE,
41 PROC_PID_FD,
42 PROC_PID_ENVIRON,
43 PROC_PID_CMDLINE,
44 PROC_PID_STAT,
45 PROC_PID_STATM,
46 PROC_PID_MAPS
47 };
48
49 enum pid_subdirectory_inos {
50 PROC_PID_FD_DIR = 1
51 };
52
53 enum net_directory_inos {
54 PROC_NET_UNIX = 128,
55 #ifdef CONFIG_INET
56 PROC_NET_ARP,
57 PROC_NET_ROUTE,
58 PROC_NET_DEV,
59 PROC_NET_RAW,
60 PROC_NET_TCP,
61 PROC_NET_UDP,
62 PROC_NET_SNMP,
63 #ifdef CONFIG_INET_RARP
64 PROC_NET_RARP,
65 #endif
66 #ifdef CONFIG_IP_MULTICAST
67 PROC_NET_IGMP,
68 #endif
69 #ifdef CONFIG_IP_FIREWALL
70 PROC_NET_IPFWFWD,
71 PROC_NET_IPBLFWD,
72 #endif
73 #ifdef CONFIG_IP_ACCT
74 PROC_NET_IPACCT,
75 #endif
76 #endif
77 #ifdef CONFIG_IPX
78 PROC_NET_IPX_ROUTE,
79 PROC_NET_IPX,
80 #endif
81 #ifdef CONFIG_AX25
82 PROC_NET_AX25_ROUTE,
83 PROC_NET_AX25,
84 #ifdef CONFIG_NETROM
85 PROC_NET_NR_NODES,
86 PROC_NET_NR_NEIGH,
87 PROC_NET_NR,
88 #endif
89 #endif
90 PROC_NET_LAST
91 };
92
93 #define PROC_SUPER_MAGIC 0x9fa0
94
95 struct proc_dir_entry {
96 unsigned short low_ino;
97 unsigned short namelen;
98 char * name;
99 };
100
101 extern struct super_block *proc_read_super(struct super_block *,void *,int);
102 extern void proc_put_inode(struct inode *);
103 extern void proc_put_super(struct super_block *);
104 extern void proc_statfs(struct super_block *, struct statfs *);
105 extern void proc_read_inode(struct inode *);
106 extern void proc_write_inode(struct inode *);
107 extern int proc_match(int, const char *, struct proc_dir_entry *);
108
109 extern struct inode_operations proc_root_inode_operations;
110 extern struct inode_operations proc_base_inode_operations;
111 extern struct inode_operations proc_net_inode_operations;
112 extern struct inode_operations proc_mem_inode_operations;
113 extern struct inode_operations proc_array_inode_operations;
114 extern struct inode_operations proc_kcore_inode_operations;
115 extern struct inode_operations proc_profile_inode_operations;
116 extern struct inode_operations proc_kmsg_inode_operations;
117 extern struct inode_operations proc_link_inode_operations;
118 extern struct inode_operations proc_fd_inode_operations;
119
120 #endif