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

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