root/include/linux/proc_fs.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


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

/* [previous][next][first][last][top][bottom][index][help] */