root/fs/proc/procfs_syms.c

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

DEFINITIONS

This source file includes following definitions.
  1. init_proc_fs

   1 #include <linux/module.h>
   2 #include <linux/fs.h>
   3 #include <linux/proc_fs.h>
   4 
   5 /*
   6  * This is all required so that if we load all of scsi as a module,
   7  * that the scsi code will be able to talk to the /proc/scsi handling
   8  * in the procfs.
   9  */
  10 extern int (* dispatch_scsi_info_ptr) (int ino, char *buffer, char **start,
  11                                 off_t offset, int length, int inout);
  12 extern struct inode_operations proc_scsi_inode_operations;
  13 
  14 static struct symbol_table procfs_syms = {
  15 /* Should this be surrounded with "#ifdef CONFIG_MODULES" ? */
  16 #include <linux/symtab_begin.h>
  17         X(proc_register),
  18         X(proc_unregister),
  19         X(in_group_p),
  20         X(generate_cluster),
  21         X(proc_net_inode_operations),
  22         X(proc_net),
  23 
  24         /*
  25          * This is required so that if we load scsi later, that the
  26          * scsi code can attach to /proc/scsi in the correct manner.
  27          */
  28         X(proc_scsi),
  29         X(proc_scsi_inode_operations),
  30         X(dispatch_scsi_info_ptr),
  31 #include <linux/symtab_end.h>
  32 };
  33 
  34 static struct file_system_type proc_fs_type = {
  35         proc_read_super, "proc", 0, NULL
  36 };
  37 
  38 int init_proc_fs(void)
     /* [previous][next][first][last][top][bottom][index][help] */
  39 {
  40         int status;
  41 
  42         if ((status = register_filesystem(&proc_fs_type)) == 0)
  43                 status = register_symtab(&procfs_syms);
  44         return status;
  45 }
  46 

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