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