root/kernel/ksyms.c

/* [previous][next][first][last][top][bottom][index][help] */
   1 /* 
   2  * Herein lies all the functions/variables that are "exported" for linkage
   3  * with dynamically loaded kernel modules.
   4  *                      Jon.
   5  */
   6 
   7 #include <linux/autoconf.h>
   8 #include <linux/kernel.h>
   9 #include <linux/fs.h>
  10 #include <linux/sched.h>
  11 #include <linux/mm.h>
  12 #include <linux/malloc.h>
  13 #include <linux/binfmts.h>
  14 #include <linux/ptrace.h>
  15 #include <linux/sys.h>
  16 #include <linux/utsname.h>
  17   
  18 extern void *sys_call_table;
  19 
  20 #define X(name) { (void *) &name, "_" #name }
  21 
  22 #ifdef CONFIG_FTAPE
  23 extern char * ftape_big_buffer;
  24 extern void (*do_floppy)(void);
  25 #endif
  26 
  27 #ifdef CONFIG_BINFMT_IBCS
  28 extern int do_execve(char * filename, char ** argv, char ** envp,
  29                 struct pt_regs * regs);
  30 extern void flush_old_exec(struct linux_binprm * bprm);
  31 extern int open_inode(struct inode * inode, int mode);
  32 extern int read_exec(struct inode *inode, unsigned long offset,
  33         char * addr, unsigned long count);
  34 
  35 extern void check_pending(int signum);
  36 extern int do_signal(unsigned long oldmask, struct pt_regs * regs);
  37 extern int (*ibcs_invmapsig)(int);
  38 
  39 extern void (* iABI_hook)(struct pt_regs * regs);
  40 #endif
  41 
  42 struct {
  43         void *addr;
  44         const char *name;
  45 } symbol_table[] = {
  46         /* system info variables */
  47         X(EISA_bus),
  48         X(wp_works_ok),
  49 
  50         /* process memory management */
  51         X(__verify_write),
  52         X(do_mmap),
  53         X(do_munmap),
  54 
  55         /* internal kernel memory management */
  56         X(__get_free_pages),
  57         X(free_pages),
  58         X(kmalloc),
  59         X(kfree_s),
  60         X(vmalloc),
  61         X(vfree),
  62 
  63         /* filesystem internal functions */
  64         X(getname),
  65         X(putname),
  66         X(__iget),
  67         X(iput),
  68         X(namei),
  69         X(lnamei),
  70 
  71         /* device registration */
  72         X(register_chrdev),
  73         X(unregister_chrdev),
  74         X(register_blkdev),
  75         X(unregister_blkdev),
  76 
  77         /* filesystem registration */
  78         X(register_filesystem),
  79         X(unregister_filesystem),
  80 
  81         /* interrupt handling */
  82         X(request_irq),
  83         X(free_irq),
  84 
  85         /* process management */
  86         X(wake_up),
  87         X(wake_up_interruptible),
  88         X(schedule),
  89         X(current),
  90         X(jiffies),
  91         X(xtime),
  92 
  93         /* misc */
  94         X(printk),
  95         X(sprintf),
  96         X(vsprintf),
  97         X(system_utsname),
  98         X(sys_call_table),
  99 
 100 #ifdef CONFIG_FTAPE
 101         /* The next labels are needed for ftape driver.  */
 102         X(ftape_big_buffer),
 103         X(do_floppy),
 104 #endif
 105 
 106 #ifdef CONFIG_BINFMT_IBCS
 107 /*
 108  * The following are needed if iBCS support is modular rather than
 109  * compiled in.
 110  */
 111         /* Emulator hooks. */
 112         X(iABI_hook),
 113         X(ibcs_invmapsig),
 114 
 115         /* Signal interfaces */
 116         X(do_signal),
 117         X(check_pending),
 118         X(send_sig),
 119 
 120         /* Program loader interfaces */
 121         X(change_ldt),
 122         X(copy_strings),
 123         X(create_tables),
 124         X(do_execve),
 125         X(flush_old_exec),
 126         X(formats),
 127         X(insert_vm_struct),
 128         X(open_inode),
 129         X(read_exec),
 130         X(zeromap_page_range),
 131 
 132         /* Miscellaneous access points */
 133         X(si_meminfo),
 134 #endif
 135 };
 136 
 137 int symbol_table_size = sizeof (symbol_table) / sizeof (symbol_table[0]);

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