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

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