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