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 };
  28 
  29 enum pid_directory_inos {
  30         PROC_PID_INO = 2,
  31         PROC_PID_MEM,
  32         PROC_PID_CWD,
  33         PROC_PID_ROOT,
  34         PROC_PID_EXE,
  35         PROC_PID_FD,
  36         PROC_PID_ENVIRON,
  37         PROC_PID_CMDLINE,
  38         PROC_PID_STAT,
  39         PROC_PID_STATM,
  40         PROC_PID_MAPS
  41 };
  42 
  43 enum pid_subdirectory_inos {
  44         PROC_PID_FD_DIR = 1
  45 };
  46 
  47 enum net_directory_inos {
  48         PROC_NET_UNIX = 128,
  49 #ifdef CONFIG_INET
  50         PROC_NET_ARP,
  51         PROC_NET_ROUTE,
  52         PROC_NET_DEV,
  53         PROC_NET_RAW,
  54         PROC_NET_TCP,
  55         PROC_NET_UDP,
  56         PROC_NET_SNMP,
  57 #ifdef CONFIG_INET_RARP
  58         PROC_NET_RARP,
  59 #endif
  60 #endif
  61 #ifdef CONFIG_IPX
  62         PROC_NET_IPX_ROUTE,
  63         PROC_NET_IPX,
  64 #endif
  65 #ifdef CONFIG_AX25
  66         PROC_NET_AX25_ROUTE,
  67         PROC_NET_AX25,
  68 #ifdef CONFIG_NETROM
  69         PROC_NET_NR_NODES,
  70         PROC_NET_NR_NEIGH,
  71         PROC_NET_NR,
  72 #endif
  73 #endif
  74         PROC_NET_LAST
  75 };
  76 
  77 #define PROC_SUPER_MAGIC 0x9fa0
  78 
  79 struct proc_dir_entry {
  80         unsigned short low_ino;
  81         unsigned short namelen;
  82         char * name;
  83 };
  84 
  85 extern struct super_block *proc_read_super(struct super_block *,void *,int);
  86 extern void proc_put_inode(struct inode *);
  87 extern void proc_put_super(struct super_block *);
  88 extern void proc_statfs(struct super_block *, struct statfs *);
  89 extern void proc_read_inode(struct inode *);
  90 extern void proc_write_inode(struct inode *);
  91 extern int proc_match(int, const char *, struct proc_dir_entry *);
  92 
  93 extern struct inode_operations proc_root_inode_operations;
  94 extern struct inode_operations proc_base_inode_operations;
  95 extern struct inode_operations proc_net_inode_operations;
  96 extern struct inode_operations proc_mem_inode_operations;
  97 extern struct inode_operations proc_array_inode_operations;
  98 extern struct inode_operations proc_kcore_inode_operations;
  99 extern struct inode_operations proc_kmsg_inode_operations;
 100 extern struct inode_operations proc_link_inode_operations;
 101 extern struct inode_operations proc_fd_inode_operations;
 102 
 103 #endif

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