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_NET
  38 #include <linux/net.h>
  39 #include <linux/netdevice.h>
  40 #ifdef CONFIG_INET
  41 #include <linux/ip.h>
  42 #include <net/protocol.h>
  43 #include <net/arp.h>
  44 #include <net/tcp.h>
  45 #if defined(CONFIG_PPP) || defined(CONFIG_SLIP)
  46 #include "../drivers/net/slhc.h"
  47 #endif
  48 #endif
  49 #endif
  50 #ifdef CONFIG_PCI
  51 #include <linux/bios32.h>
  52 #include <linux/pci.h>
  53 #endif
  54 #if defined(CONFIG_MSDOS_FS) && !defined(CONFIG_UMSDOS_FS)
  55 #include <linux/msdos_fs.h>
  56 #endif
  57 
  58 #include <asm/irq.h>
  59 extern char floppy_track_buffer[];
  60 extern void set_device_ro(int dev,int flag);
  61 extern struct file_operations * get_blkfops(unsigned int);
  62   
  63 extern void *sys_call_table;
  64 
  65 #ifdef CONFIG_FTAPE
  66 extern char * ftape_big_buffer;
  67 #endif
  68 
  69 #ifdef CONFIG_SCSI
  70 #include "../drivers/scsi/scsi.h"
  71 #include "../drivers/scsi/hosts.h"
  72 #include "../drivers/scsi/constants.h"
  73 #endif
  74 
  75 extern int sys_tz;
  76 extern int request_dma(unsigned int dmanr, char * deviceID);
  77 extern void free_dma(unsigned int dmanr);
  78 
  79 extern int close_fp(struct file *filp);
  80 extern void (* iABI_hook)(struct pt_regs * regs);
  81 
  82 struct symbol_table symbol_table = {
  83 #include <linux/symtab_begin.h>
  84 #ifdef CONFIG_MODVERSIONS
  85         { (void *)1 /* Version version :-) */, "_Using_Versions" },
  86 #endif
  87         /* stackable module support */
  88         X(rename_module_symbol),
  89         X(register_symtab),
  90 
  91         /* system info variables */
  92         /* These check that they aren't defines (0/1) */
  93 #ifndef EISA_bus__is_a_macro
  94         X(EISA_bus),
  95 #endif
  96 #ifndef MCA_bus__is_a_macro
  97         X(MCA_bus),
  98 #endif
  99 #ifndef wp_works_ok__is_a_macro
 100         X(wp_works_ok),
 101 #endif
 102 
 103 #ifdef CONFIG_PCI
 104         /* PCI BIOS support */
 105         X(pcibios_present),
 106         X(pcibios_find_class),
 107         X(pcibios_find_device),
 108         X(pcibios_read_config_byte),
 109         X(pcibios_read_config_word),
 110         X(pcibios_read_config_dword),
 111         X(pcibios_strerror),
 112         X(pcibios_write_config_byte),
 113         X(pcibios_write_config_word),
 114         X(pcibios_write_config_dword),
 115 #endif
 116 
 117         /* process memory management */
 118         X(verify_area),
 119         X(do_mmap),
 120         X(do_munmap),
 121         X(zeromap_page_range),
 122         X(unmap_page_range),
 123         X(insert_vm_struct),
 124         X(merge_segments),
 125 
 126         /* internal kernel memory management */
 127         X(__get_free_pages),
 128         X(free_pages),
 129         X(kmalloc),
 130         X(kfree_s),
 131         X(vmalloc),
 132         X(vfree),
 133 
 134         /* filesystem internal functions */
 135         X(getname),
 136         X(putname),
 137         X(__iget),
 138         X(iput),
 139         X(namei),
 140         X(lnamei),
 141         X(open_namei),
 142         X(close_fp),
 143         X(check_disk_change),
 144         X(invalidate_buffers),
 145         X(fsync_dev),
 146         X(permission),
 147         X(inode_setattr),
 148         X(inode_change_ok),
 149         X(generic_mmap),
 150         X(set_blocksize),
 151         X(getblk),
 152         X(bread),
 153         X(breada),
 154         X(brelse),
 155         X(ll_rw_block),
 156         X(__wait_on_buffer),
 157         X(dcache_lookup),
 158         X(dcache_add),
 159 
 160         /* device registration */
 161         X(register_chrdev),
 162         X(unregister_chrdev),
 163         X(register_blkdev),
 164         X(unregister_blkdev),
 165         X(tty_register_driver),
 166         X(tty_unregister_driver),
 167         X(tty_std_termios),
 168 
 169         /* block device driver support */
 170         X(block_read),
 171         X(block_write),
 172         X(block_fsync),
 173         X(wait_for_request),
 174         X(blksize_size),
 175         X(hardsect_size),
 176         X(blk_size),
 177         X(blk_dev),
 178         X(is_read_only),
 179         X(set_device_ro),
 180         X(bmap),
 181         X(sync_dev),
 182         X(get_blkfops),
 183         
 184         /* Module creation of serial units */
 185         X(register_serial),
 186         X(unregister_serial),
 187 
 188         /* tty routines */
 189         X(tty_hangup),
 190         X(tty_wait_until_sent),
 191         X(tty_check_change),
 192         X(tty_hung_up_p),
 193 
 194         /* filesystem registration */
 195         X(register_filesystem),
 196         X(unregister_filesystem),
 197 
 198         /* executable format registration */
 199         X(register_binfmt),
 200         X(unregister_binfmt),
 201 
 202         /* execution environment registration */
 203         X(lookup_exec_domain),
 204         X(register_exec_domain),
 205         X(unregister_exec_domain),
 206 
 207         /* interrupt handling */
 208         X(request_irq),
 209         X(free_irq),
 210         X(enable_irq),
 211         X(disable_irq),
 212         X(bh_active),
 213         X(bh_mask),
 214         X(add_timer),
 215         X(del_timer),
 216         X(tq_timer),
 217         X(tq_immediate),
 218         X(tq_scheduler),
 219         X(tq_last),
 220         X(timer_active),
 221         X(timer_table),
 222 
 223         /* dma handling */
 224         X(request_dma),
 225         X(free_dma),
 226 #ifdef HAVE_DISABLE_HLT
 227         X(disable_hlt),
 228         X(enable_hlt),
 229 #endif
 230 
 231         /* IO port handling */
 232         X(check_region),
 233         X(request_region),
 234         X(release_region),
 235 
 236         /* process management */
 237         X(wake_up),
 238         X(wake_up_interruptible),
 239         X(sleep_on),
 240         X(interruptible_sleep_on),
 241         X(schedule),
 242         X(current),
 243         X(jiffies),
 244         X(xtime),
 245         X(loops_per_sec),
 246         X(need_resched),
 247         X(kill_proc),
 248         X(kill_pg),
 249         X(kill_sl),
 250 
 251         /* misc */
 252         X(panic),
 253         X(printk),
 254         X(sprintf),
 255         X(vsprintf),
 256         X(simple_strtoul),
 257         X(system_utsname),
 258         X(sys_call_table),
 259 
 260         /* Signal interfaces */
 261         X(do_signal),
 262         X(send_sig),
 263 
 264         /* Program loader interfaces */
 265         X(setup_arg_pages),
 266         X(copy_strings),
 267         X(create_tables),
 268         X(do_execve),
 269         X(flush_old_exec),
 270         X(open_inode),
 271         X(read_exec),
 272 
 273         /* Miscellaneous access points */
 274         X(si_meminfo),
 275 #ifdef CONFIG_NET
 276         /* socket layer registration */
 277         X(sock_register),
 278         X(sock_unregister),
 279         /* Internet layer registration */
 280 #ifdef CONFIG_INET      
 281         X(inet_add_protocol),
 282         X(inet_del_protocol),
 283 #if defined(CONFIG_PPP) || defined(CONFIG_SLIP)
 284         /* VJ header compression */
 285         X(slhc_init),
 286         X(slhc_free),
 287         X(slhc_remember),
 288         X(slhc_compress),
 289         X(slhc_uncompress),
 290 #endif
 291 #endif
 292         /* Device callback registration */
 293         X(register_netdevice_notifier),
 294         X(unregister_netdevice_notifier),
 295 #endif
 296 
 297 #ifdef CONFIG_FTAPE
 298         /* The next labels are needed for ftape driver.  */
 299         X(ftape_big_buffer),
 300 #endif
 301         X(floppy_track_buffer),
 302 #ifdef CONFIG_INET
 303         /* support for loadable net drivers */
 304         X(register_netdev),
 305         X(unregister_netdev),
 306         X(ether_setup),
 307         X(alloc_skb),
 308         X(kfree_skb),
 309         X(dev_kfree_skb),
 310         X(netif_rx),
 311         X(dev_rint),
 312         X(dev_tint),
 313         X(irq2dev_map),
 314         X(dev_add_pack),
 315         X(dev_remove_pack),
 316         X(dev_get),
 317         X(dev_ioctl),
 318         X(dev_queue_xmit),
 319         X(dev_base),
 320         X(dev_close),
 321         X(arp_find),
 322         X(n_tty_ioctl),
 323         X(tty_register_ldisc),
 324         X(kill_fasync),
 325 #endif
 326 #ifdef CONFIG_SCSI
 327         /* Supports loadable scsi drivers */
 328         /* 
 329          * in_scan_scsis is a hack, and should go away once the new 
 330          * memory allocation code is in the NCR driver 
 331          */
 332         X(in_scan_scsis),
 333         X(scsi_register_module),
 334         X(scsi_unregister_module),
 335         X(scsi_free),
 336         X(scsi_malloc),
 337         X(scsi_register),
 338         X(scsi_unregister),
 339         X(scsicam_bios_param),
 340         X(scsi_init_malloc),
 341         X(scsi_init_free),
 342         X(print_command),
 343         X(print_msg),
 344         X(print_status),
 345 #endif
 346         /* Added to make file system as module */
 347         X(set_writetime),
 348         X(sys_tz),
 349         X(__wait_on_super),
 350         X(file_fsync),
 351         X(clear_inode),
 352         X(refile_buffer),
 353         X(___strtok),
 354         X(init_fifo),
 355         X(super_blocks),
 356         X(chrdev_inode_operations),
 357         X(blkdev_inode_operations),
 358         X(read_ahead),
 359         X(get_hash_table),
 360         X(get_empty_inode),
 361         X(insert_inode_hash),
 362         X(event),
 363         X(__down),
 364 #if defined(CONFIG_MSDOS_FS) && !defined(CONFIG_UMSDOS_FS)
 365         /* support for umsdos fs */
 366         X(msdos_bmap),
 367         X(msdos_create),
 368         X(msdos_file_read),
 369         X(msdos_file_write),
 370         X(msdos_lookup),
 371         X(msdos_mkdir),
 372         X(msdos_mmap),
 373         X(msdos_put_inode),
 374         X(msdos_put_super),
 375         X(msdos_read_inode),
 376         X(msdos_read_super),
 377         X(msdos_readdir),
 378         X(msdos_rename),
 379         X(msdos_rmdir),
 380         X(msdos_smap),
 381         X(msdos_statfs),
 382         X(msdos_truncate),
 383         X(msdos_unlink),
 384         X(msdos_unlink_umsdos),
 385         X(msdos_write_inode),
 386 #endif
 387         /********************************************************
 388          * Do not add anything below this line,
 389          * as the stacked modules depend on this!
 390          */
 391 #include <linux/symtab_end.h>
 392 };
 393 
 394 /*
 395 int symbol_table_size = sizeof (symbol_table) / sizeof (symbol_table[0]);
 396 */

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