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  * Stacked module support and unified symbol table added by
   7  * Bjorn Ekwall <bj0rn@blox.se>
   8  */
   9 
  10 #include <linux/autoconf.h>
  11 #include <linux/kernel.h>
  12 #include <linux/fs.h>
  13 #include <linux/blkdev.h>
  14 #include <linux/sched.h>
  15 #include <linux/mm.h>
  16 #include <linux/malloc.h>
  17 #include <linux/ptrace.h>
  18 #include <linux/sys.h>
  19 #include <linux/utsname.h>
  20 #include <linux/interrupt.h>
  21 #include <linux/ioport.h>
  22 #include <linux/timer.h>
  23 #include <linux/binfmts.h>
  24 #include <linux/personality.h>
  25 #include <linux/module.h>
  26 #include <linux/termios.h>
  27 #include <linux/tqueue.h>
  28 #include <linux/tty.h>
  29 #include <linux/serial.h>
  30 #include <linux/locks.h>
  31 #include <linux/string.h>
  32 #include <linux/delay.h>
  33 #ifdef CONFIG_INET
  34 #include <linux/net.h>
  35 #include <linux/netdevice.h>
  36 #endif
  37 #ifdef CONFIG_PCI
  38 #include <linux/pci.h>
  39 #endif
  40 #if defined(CONFIG_MSDOS_FS) && !defined(CONFIG_UMSDOS_FS)
  41 #include <linux/msdos_fs.h>
  42 #endif
  43 
  44 #include <asm/irq.h>
  45 extern char floppy_track_buffer[];
  46 extern void set_device_ro(int dev,int flag);
  47   
  48 extern void *sys_call_table;
  49 
  50 /* must match struct internal_symbol !!! */
  51 #define X(name) { (void *) &name, "_" #name }
  52 
  53 #ifdef CONFIG_FTAPE
  54 extern char * ftape_big_buffer;
  55 extern void (*do_floppy)(void);
  56 #endif
  57 
  58 extern int sys_tz;
  59 extern int request_dma(unsigned int dmanr, char * deviceID);
  60 extern void free_dma(unsigned int dmanr);
  61 
  62 extern int do_execve(char * filename, char ** argv, char ** envp,
  63                 struct pt_regs * regs);
  64 extern int do_signal(unsigned long oldmask, struct pt_regs * regs);
  65 
  66 extern void (* iABI_hook)(struct pt_regs * regs);
  67 
  68 struct symbol_table symbol_table = { 0, 0, 0, /* for stacked module support */
  69         {
  70         /* stackable module support */
  71         X(rename_module_symbol),
  72 
  73         /* system info variables */
  74         X(EISA_bus),
  75         X(wp_works_ok),
  76 
  77 #ifdef CONFIG_PCI
  78         /* PCI BIOS support */
  79         X(pcibios_present),
  80         X(pcibios_find_class),
  81         X(pcibios_find_device),
  82         X(pcibios_read_config_byte),
  83         X(pcibios_read_config_word),
  84         X(pcibios_read_config_dword),
  85         X(pcibios_write_config_byte),
  86         X(pcibios_write_config_word),
  87         X(pcibios_write_config_dword),
  88 #endif
  89 
  90         /* process memory management */
  91         X(verify_area),
  92         X(do_mmap),
  93         X(do_munmap),
  94         X(zeromap_page_range),
  95         X(unmap_page_range),
  96         X(insert_vm_struct),
  97         X(merge_segments),
  98 
  99         /* internal kernel memory management */
 100         X(__get_free_pages),
 101         X(free_pages),
 102         X(kmalloc),
 103         X(kfree_s),
 104         X(vmalloc),
 105         X(vfree),
 106 
 107         /* filesystem internal functions */
 108         X(getname),
 109         X(putname),
 110         X(__iget),
 111         X(iput),
 112         X(namei),
 113         X(lnamei),
 114         X(open_namei),
 115         X(check_disk_change),
 116         X(invalidate_buffers),
 117         X(fsync_dev),
 118         X(permission),
 119         X(inode_setattr),
 120         X(inode_change_ok),
 121         X(generic_mmap),
 122         X(set_blocksize),
 123         X(getblk),
 124         X(bread),
 125         X(breada),
 126         X(brelse),
 127         X(ll_rw_block),
 128         X(__wait_on_buffer),
 129         X(dcache_lookup),
 130         X(dcache_add),
 131 
 132         /* device registration */
 133         X(register_chrdev),
 134         X(unregister_chrdev),
 135         X(register_blkdev),
 136         X(unregister_blkdev),
 137         X(tty_register_driver),
 138         X(tty_unregister_driver),
 139         X(tty_std_termios),
 140 
 141         /* block device driver support */
 142         X(block_read),
 143         X(block_write),
 144         X(block_fsync),
 145         X(wait_for_request),
 146         X(blksize_size),
 147         X(hardsect_size),
 148         X(blk_size),
 149         X(blk_dev),
 150         X(is_read_only),
 151         X(set_device_ro),
 152         X(bmap),
 153         X(sync_dev),
 154         
 155         /* Module creation of serial units */
 156         X(register_serial),
 157         X(unregister_serial),
 158 
 159         /* filesystem registration */
 160         X(register_filesystem),
 161         X(unregister_filesystem),
 162 
 163         /* executable format registration */
 164         X(register_binfmt),
 165         X(unregister_binfmt),
 166 
 167         /* execution environment registration */
 168         X(lookup_exec_domain),
 169         X(register_exec_domain),
 170         X(unregister_exec_domain),
 171 
 172         /* interrupt handling */
 173         X(request_irq),
 174         X(free_irq),
 175         X(enable_irq),
 176         X(disable_irq),
 177         X(bh_active),
 178         X(bh_mask),
 179         X(add_timer),
 180         X(del_timer),
 181         X(tq_timer),
 182         X(tq_immediate),
 183         X(tq_last),
 184         X(timer_active),
 185         X(timer_table),
 186 
 187         /* dma handling */
 188         X(request_dma),
 189         X(free_dma),
 190 
 191         /* process management */
 192         X(wake_up),
 193         X(wake_up_interruptible),
 194         X(sleep_on),
 195         X(interruptible_sleep_on),
 196         X(schedule),
 197         X(current),
 198         X(jiffies),
 199         X(xtime),
 200         X(loops_per_sec),
 201         X(need_resched),
 202         X(kill_proc),
 203         X(kill_pg),
 204         X(kill_sl),
 205 
 206         /* misc */
 207         X(panic),
 208         X(printk),
 209         X(sprintf),
 210         X(vsprintf),
 211         X(simple_strtoul),
 212         X(system_utsname),
 213         X(sys_call_table),
 214 
 215         /* Signal interfaces */
 216         X(do_signal),
 217         X(send_sig),
 218 
 219         /* Program loader interfaces */
 220         X(change_ldt),
 221         X(copy_strings),
 222         X(create_tables),
 223         X(do_execve),
 224         X(flush_old_exec),
 225         X(open_inode),
 226         X(read_exec),
 227 
 228         /* Miscellaneous access points */
 229         X(si_meminfo),
 230 
 231         /* socket layer registration */
 232         X(sock_register),
 233         X(sock_unregister),
 234 
 235 #ifdef CONFIG_FTAPE
 236         /* The next labels are needed for ftape driver.  */
 237         X(ftape_big_buffer),
 238         X(do_floppy),
 239 #endif
 240         X(floppy_track_buffer),
 241 #ifdef CONFIG_INET
 242         /* support for loadable net drivers */
 243         X(register_netdev),
 244         X(unregister_netdev),
 245         X(ether_setup),
 246         X(alloc_skb),
 247         X(kfree_skb),
 248         X(dev_kfree_skb),
 249         X(snarf_region),
 250         X(release_region),
 251         X(netif_rx),
 252         X(dev_rint),
 253         X(dev_tint),
 254         X(irq2dev_map),
 255         X(dev_add_pack),
 256         X(dev_remove_pack),
 257         X(dev_get),
 258         X(dev_ioctl),
 259         X(dev_queue_xmit),
 260         X(dev_base),
 261 #endif
 262         /* Added to make file system as module */
 263         X(set_writetime),
 264         X(sys_tz),
 265         X(__wait_on_super),
 266         X(file_fsync),
 267         X(clear_inode),
 268         X(refile_buffer),
 269         X(___strtok),
 270         X(init_fifo),
 271         X(super_blocks),
 272         X(chrdev_inode_operations),
 273         X(blkdev_inode_operations),
 274         X(read_ahead),
 275         X(get_hash_table),
 276         X(get_empty_inode),
 277         X(insert_inode_hash),
 278 #if defined(CONFIG_MSDOS_FS) && !defined(CONFIG_UMSDOS_FS)
 279         /* support for umsdos fs */
 280         X(msdos_create),
 281         X(msdos_file_read),
 282         X(msdos_file_write),
 283         X(msdos_lookup),
 284         X(msdos_mkdir),
 285         X(msdos_put_inode),
 286         X(msdos_put_super),
 287         X(msdos_read_inode),
 288         X(msdos_read_super),
 289         X(msdos_readdir),
 290         X(msdos_rename),
 291         X(msdos_rmdir),
 292         X(msdos_smap),
 293         X(msdos_statfs),
 294         X(msdos_truncate),
 295         X(msdos_unlink),
 296         X(msdos_unlink_umsdos),
 297         X(msdos_write_inode),
 298 #endif
 299         /********************************************************
 300          * Do not add anything below this line,
 301          * as the stacked modules depend on this!
 302          */
 303         { NULL, NULL } /* mark end of table */
 304         },
 305         { { NULL, NULL } /* no module refs */ }
 306 };
 307 
 308 /*
 309 int symbol_table_size = sizeof (symbol_table) / sizeof (symbol_table[0]);
 310 */

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