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/module.h>
  13 #include <linux/config.h>
  14 #include <linux/kernel.h>
  15 #include <linux/smp.h>
  16 #include <linux/fs.h>
  17 #include <linux/blkdev.h>
  18 #include <linux/sched.h>
  19 #include <linux/kernel_stat.h>
  20 #include <linux/mm.h>
  21 #include <linux/malloc.h>
  22 #include <linux/ptrace.h>
  23 #include <linux/sys.h>
  24 #include <linux/utsname.h>
  25 #include <linux/interrupt.h>
  26 #include <linux/ioport.h>
  27 #include <linux/timer.h>
  28 #include <linux/binfmts.h>
  29 #include <linux/personality.h>
  30 #include <linux/termios.h>
  31 #include <linux/tqueue.h>
  32 #include <linux/tty.h>
  33 #include <linux/serial.h>
  34 #include <linux/locks.h>
  35 #include <linux/string.h>
  36 #include <linux/delay.h>
  37 #include <linux/sem.h>
  38 #include <linux/minix_fs.h>
  39 #include <linux/ext2_fs.h>
  40 #include <linux/random.h>
  41 #include <linux/mount.h>
  42 #include <linux/pagemap.h>
  43 
  44 extern unsigned char aux_device_present, kbd_read_mask;
  45 
  46 #ifdef __alpha__
  47 # include <asm/io.h>
  48 # include <asm/hwrpb.h>
  49 
  50 extern void bcopy (const char *src, char *dst, int len);
  51 extern struct hwrpb_struct *hwrpb;
  52 
  53 /* these are C runtime functions with special calling conventions: */
  54 extern void __divl (void);
  55 extern void __reml (void);
  56 extern void __divq (void);
  57 extern void __remq (void);
  58 extern void __divlu (void);
  59 extern void __remlu (void);
  60 extern void __divqu (void);
  61 extern void __remqu (void);
  62 
  63 #endif
  64 
  65 #ifdef CONFIG_NET
  66 #include <linux/in.h>
  67 #include <linux/net.h>
  68 #include <linux/netdevice.h>
  69 #include <linux/firewall.h>
  70 
  71 #include <linux/trdevice.h>
  72 
  73 #ifdef CONFIG_AX25
  74 #include <net/ax25.h>
  75 #endif
  76 #ifdef CONFIG_INET
  77 #include <linux/ip.h>
  78 #include <linux/etherdevice.h>
  79 #include <net/protocol.h>
  80 #include <net/arp.h>
  81 #include <net/ip.h>
  82 #include <net/udp.h>
  83 #include <net/tcp.h>
  84 #include <net/route.h>
  85 #include <linux/net_alias.h>
  86 #if defined(CONFIG_PPP) || defined(CONFIG_SLIP)
  87 #include "../drivers/net/slhc.h"
  88 #endif
  89 #endif
  90 #ifdef CONFIG_NET_ALIAS
  91 #include <linux/net_alias.h>
  92 #endif
  93 #endif
  94 #ifdef CONFIG_PCI
  95 #include <linux/bios32.h>
  96 #include <linux/pci.h>
  97 #endif
  98 #if defined(CONFIG_MSDOS_FS) && !defined(CONFIG_UMSDOS_FS)
  99 #include <linux/msdos_fs.h>
 100 #endif
 101 
 102 #if defined(CONFIG_PROC_FS)
 103 #include <linux/proc_fs.h>
 104 #endif
 105 
 106 #include <asm/irq.h>
 107 #ifdef __SMP__
 108 #include <linux/smp.h>
 109 #endif
 110 
 111 extern char *get_options(char *str, int *ints);
 112 extern void set_device_ro(int dev,int flag);
 113 extern struct file_operations * get_blkfops(unsigned int);
 114 
 115 extern void *sys_call_table;
 116 
 117 #if     defined(CONFIG_ULTRA)   ||      defined(CONFIG_WD80x3)          || \
 118         defined(CONFIG_EL2)     ||      defined(CONFIG_NE2000)          || \
 119         defined(CONFIG_E2100)   ||      defined(CONFIG_HPLAN_PLUS)      || \
 120         defined(CONFIG_HPLAN)   ||      defined(CONFIG_AC3200)          
 121 #include "../drivers/net/8390.h"
 122 #endif
 123 
 124 #ifdef CONFIG_SCSI
 125 #include "../drivers/scsi/scsi.h"
 126 #include "../drivers/scsi/scsi_ioctl.h"
 127 #include "../drivers/scsi/hosts.h"
 128 #include "../drivers/scsi/constants.h"
 129 #include "../drivers/scsi/sd.h"
 130 #include <linux/scsicam.h>
 131 
 132 extern int generic_proc_info(char *, char **, off_t, int, int, int);
 133 #endif
 134 
 135 extern int sys_tz;
 136 extern int request_dma(unsigned int dmanr, char * deviceID);
 137 extern void free_dma(unsigned int dmanr);
 138 extern int (*rarp_ioctl_hook)(int,void*);
 139 
 140 extern void (* iABI_hook)(struct pt_regs * regs);
 141 
 142 #ifdef CONFIG_BINFMT_ELF
 143 #include <linux/elfcore.h>
 144 extern int dump_fpu(elf_fpregset_t *);
 145 #endif
 146 
 147 struct symbol_table symbol_table = {
 148 #include <linux/symtab_begin.h>
 149 #ifdef MODVERSIONS
 150         { (void *)1 /* Version version :-) */,
 151                 SYMBOL_NAME_STR (Using_Versions) },
 152 #endif
 153 
 154         /* platform dependent support */
 155 #ifdef __alpha__
 156         X(_inb),
 157         X(_inw),
 158         X(_inl),
 159         X(_outb),
 160         X(_outw),
 161         X(_outl),
 162         X(bcopy),       /* generated by gcc-2.7.0 for string assignments */
 163         X(hwrpb),
 164         X(__divl),
 165         X(__reml),
 166         X(__divq),
 167         X(__remq),
 168         X(__divlu),
 169         X(__remlu),
 170         X(__divqu),
 171         X(__remqu),
 172         X(strlen),      /* used by ftape */
 173         X(memcmp),
 174         X(memmove),
 175         X(__constant_c_memset),
 176 #endif
 177 
 178         /* stackable module support */
 179         X(rename_module_symbol),
 180         X(register_symtab),
 181         X(get_options),
 182 
 183         /* system info variables */
 184         /* These check that they aren't defines (0/1) */
 185 #ifndef EISA_bus__is_a_macro
 186         X(EISA_bus),
 187 #endif
 188 #ifndef MCA_bus__is_a_macro
 189         X(MCA_bus),
 190 #endif
 191 #ifndef wp_works_ok__is_a_macro
 192         X(wp_works_ok),
 193 #endif
 194 
 195 #ifdef CONFIG_PCI
 196         /* PCI BIOS support */
 197         X(pcibios_present),
 198         X(pcibios_find_class),
 199         X(pcibios_find_device),
 200         X(pcibios_read_config_byte),
 201         X(pcibios_read_config_word),
 202         X(pcibios_read_config_dword),
 203         X(pcibios_strerror),
 204         X(pcibios_write_config_byte),
 205         X(pcibios_write_config_word),
 206         X(pcibios_write_config_dword),
 207 #endif
 208 
 209         /* process memory management */
 210         X(verify_area),
 211         X(do_mmap),
 212         X(do_munmap),
 213         X(insert_vm_struct),
 214         X(merge_segments),
 215 
 216         /* internal kernel memory management */
 217         X(__get_free_pages),
 218         X(free_pages),
 219         X(kmalloc),
 220         X(kfree),
 221         X(vmalloc),
 222         X(vremap),
 223         X(vfree),
 224         X(mem_map),
 225         X(remap_page_range),
 226         X(high_memory),
 227         X(update_vm_cache),
 228 
 229         /* filesystem internal functions */
 230         X(getname),
 231         X(putname),
 232         X(__iget),
 233         X(iput),
 234         X(namei),
 235         X(lnamei),
 236         X(open_namei),
 237         X(close_fp),
 238         X(check_disk_change),
 239         X(invalidate_buffers),
 240         X(invalidate_inodes),
 241         X(fsync_dev),
 242         X(permission),
 243         X(inode_setattr),
 244         X(inode_change_ok),
 245         X(generic_mmap),
 246         X(set_blocksize),
 247         X(getblk),
 248         X(bread),
 249         X(breada),
 250         X(__brelse),
 251         X(__bforget),
 252         X(ll_rw_block),
 253         X(__wait_on_buffer),
 254         X(dcache_lookup),
 255         X(dcache_add),
 256         X(aout_core_dump),
 257         X(add_blkdev_randomness),
 258         X(generic_file_read),
 259         X(generic_readpage),
 260 
 261         /* device registration */
 262         X(register_chrdev),
 263         X(unregister_chrdev),
 264         X(register_blkdev),
 265         X(unregister_blkdev),
 266         X(tty_register_driver),
 267         X(tty_unregister_driver),
 268         X(tty_std_termios),
 269 
 270         /* block device driver support */
 271         X(block_read),
 272         X(block_write),
 273         X(block_fsync),
 274         X(wait_for_request),
 275         X(blksize_size),
 276         X(hardsect_size),
 277         X(blk_size),
 278         X(blk_dev),
 279         X(is_read_only),
 280         X(set_device_ro),
 281         X(bmap),
 282         X(sync_dev),
 283         X(get_blkfops),
 284         
 285         /* Module creation of serial units */
 286         X(register_serial),
 287         X(unregister_serial),
 288 
 289         /* tty routines */
 290         X(tty_hangup),
 291         X(tty_wait_until_sent),
 292         X(tty_check_change),
 293         X(tty_hung_up_p),
 294         X(do_SAK),
 295         X(console_print),
 296 
 297         /* filesystem registration */
 298         X(register_filesystem),
 299         X(unregister_filesystem),
 300 
 301         /* executable format registration */
 302         X(register_binfmt),
 303         X(unregister_binfmt),
 304 
 305         /* execution environment registration */
 306         X(lookup_exec_domain),
 307         X(register_exec_domain),
 308         X(unregister_exec_domain),
 309 
 310         /* interrupt handling */
 311         X(request_irq),
 312         X(free_irq),
 313         X(enable_irq),
 314         X(disable_irq),
 315         X(probe_irq_on),
 316         X(probe_irq_off),
 317         X(bh_active),
 318         X(bh_mask),
 319         X(bh_base),
 320         X(add_timer),
 321         X(del_timer),
 322         X(tq_timer),
 323         X(tq_immediate),
 324         X(tq_scheduler),
 325         X(tq_last),
 326         X(timer_active),
 327         X(timer_table),
 328         X(intr_count),
 329 
 330         /* autoirq from  drivers/net/auto_irq.c */
 331         X(autoirq_setup),
 332         X(autoirq_report),
 333 
 334         /* dma handling */
 335         X(request_dma),
 336         X(free_dma),
 337 #ifdef HAVE_DISABLE_HLT
 338         X(disable_hlt),
 339         X(enable_hlt),
 340 #endif
 341 
 342         /* IO port handling */
 343         X(check_region),
 344         X(request_region),
 345         X(release_region),
 346 
 347         /* process management */
 348         X(wake_up),
 349         X(wake_up_interruptible),
 350         X(sleep_on),
 351         X(interruptible_sleep_on),
 352         X(schedule),
 353         X(current_set),
 354 #if defined(__i386__) && defined(__SMP__)
 355         X(apic_reg),            /* Needed internally for the I386 inlines */
 356 #endif  
 357         X(jiffies),
 358         X(xtime),
 359         X(do_gettimeofday),
 360         X(loops_per_sec),
 361         X(need_resched),
 362         X(kstat),
 363         X(kill_proc),
 364         X(kill_pg),
 365         X(kill_sl),
 366 
 367         /* misc */
 368         X(panic),
 369         X(printk),
 370         X(sprintf),
 371         X(vsprintf),
 372         X(kdevname),
 373         X(simple_strtoul),
 374         X(system_utsname),
 375         X(sys_call_table),
 376 
 377         /* Signal interfaces */
 378         X(send_sig),
 379 
 380         /* Program loader interfaces */
 381         X(setup_arg_pages),
 382         X(copy_strings),
 383         X(create_tables),
 384         X(do_execve),
 385         X(flush_old_exec),
 386         X(open_inode),
 387         X(read_exec),
 388 
 389         /* Miscellaneous access points */
 390         X(si_meminfo),
 391 #ifdef CONFIG_NET
 392         /* Socket layer registration */
 393         X(sock_register),
 394         X(sock_unregister),
 395 #ifdef CONFIG_FIREWALL
 396         /* Firewall registration */
 397         X(register_firewall),
 398         X(unregister_firewall),
 399 #endif
 400 #ifdef CONFIG_INET      
 401         /* Internet layer registration */
 402         X(inet_add_protocol),
 403         X(inet_del_protocol),
 404         X(rarp_ioctl_hook),
 405         X(init_etherdev),
 406         X(ip_rt_route),
 407         X(ip_rt_put),
 408         X(arp_send),
 409 #ifdef CONFIG_IP_FORWARD
 410         X(ip_forward),
 411 #endif
 412 #if     defined(CONFIG_ULTRA)   ||      defined(CONFIG_WD80x3)          || \
 413         defined(CONFIG_EL2)     ||      defined(CONFIG_NE2000)          || \
 414         defined(CONFIG_E2100)   ||      defined(CONFIG_HPLAN_PLUS)      || \
 415         defined(CONFIG_HPLAN)   ||      defined(CONFIG_AC3200)
 416         /* If 8390 NIC support is built in, we will need these. */
 417         X(ei_open),
 418         X(ei_close),
 419         X(ei_debug),
 420         X(ei_interrupt),
 421         X(ethdev_init),
 422         X(NS8390_init),
 423 #endif
 424 #if defined(CONFIG_PPP) || defined(CONFIG_SLIP)
 425         /* VJ header compression */
 426         X(slhc_init),
 427         X(slhc_free),
 428         X(slhc_remember),
 429         X(slhc_compress),
 430         X(slhc_uncompress),
 431         X(slhc_toss),
 432 #endif
 433 #ifdef CONFIG_NET_ALIAS
 434 #include <linux/net_alias.h>
 435 #endif
 436 #endif
 437         /* Device callback registration */
 438         X(register_netdevice_notifier),
 439         X(unregister_netdevice_notifier),
 440 #ifdef CONFIG_NET_ALIAS
 441         X(register_net_alias_type),
 442         X(unregister_net_alias_type),
 443 #endif
 444 #endif
 445 
 446         /* support for loadable net drivers */
 447 #ifdef CONFIG_AX25
 448         X(ax25_encapsulate),
 449         X(ax25_rebuild_header), 
 450 #endif  
 451 #ifdef CONFIG_INET
 452         X(register_netdev),
 453         X(unregister_netdev),
 454         X(ether_setup),
 455         X(eth_type_trans),
 456         X(eth_copy_and_sum),
 457         X(alloc_skb),
 458         X(kfree_skb),
 459         X(dev_alloc_skb),
 460         X(dev_kfree_skb),
 461         X(netif_rx),
 462         X(dev_rint),
 463         X(dev_tint),
 464         X(irq2dev_map),
 465         X(dev_add_pack),
 466         X(dev_remove_pack),
 467         X(dev_get),
 468         X(dev_ioctl),
 469         X(dev_queue_xmit),
 470         X(dev_base),
 471         X(dev_close),
 472         X(arp_find),
 473         X(n_tty_ioctl),
 474         X(tty_register_ldisc),
 475         X(kill_fasync),
 476 #endif
 477 #ifdef CONFIG_SCSI
 478         /* Supports loadable scsi drivers 
 479          * technically some of this stuff could be moved to scsi.c, but
 480          * scsi.c is initialized before the memory manager is set up.
 481          * So we add it here too.  There is a duplicate set in scsi.c
 482          * that is used when the entire scsi subsystem is a loadable
 483          * module.
 484          */
 485         X(scsi_register_module),
 486         X(scsi_unregister_module),
 487         X(scsi_free),
 488         X(scsi_malloc),
 489         X(scsi_register),
 490         X(scsi_unregister),
 491         X(scsicam_bios_param),
 492         X(allocate_device),
 493         X(scsi_do_cmd),
 494         X(scsi_command_size),
 495         X(scsi_init_malloc),
 496         X(scsi_init_free),
 497         X(scsi_ioctl),
 498         X(scsi_mark_host_bus_reset),
 499         X(print_command),
 500         X(print_msg),
 501         X(print_status),
 502         X(print_sense),
 503         X(dma_free_sectors),
 504         X(kernel_scsi_ioctl),
 505         X(need_isa_buffer),
 506         X(request_queueable),
 507         X(generic_proc_info),
 508         X(scsi_devices),
 509         X(gendisk_head), /* Needed for sd.c */
 510         X(resetup_one_dev), /* Needed for sd.c */
 511 #if defined(CONFIG_PROC_FS)
 512         X(proc_print_scsidevice),
 513 #endif
 514 #else
 515         /*
 516          * With no scsi configured, we still need to export a few
 517          * symbols so that scsi can be loaded later via insmod.
 518          */
 519         X(gendisk_head),
 520         X(resetup_one_dev),
 521 #endif
 522         /* Added to make file system as module */
 523         X(set_writetime),
 524         X(sys_tz),
 525         X(__wait_on_super),
 526         X(file_fsync),
 527         X(clear_inode),
 528         X(refile_buffer),
 529         X(___strtok),
 530         X(init_fifo),
 531         X(super_blocks),
 532         X(chrdev_inode_operations),
 533         X(blkdev_inode_operations),
 534         X(read_ahead),
 535         X(get_hash_table),
 536         X(get_empty_inode),
 537         X(insert_inode_hash),
 538         X(event),
 539         X(__down),
 540 #if defined(CONFIG_MSDOS_FS) && !defined(CONFIG_UMSDOS_FS)
 541         /* support for umsdos fs */
 542         X(msdos_bmap),
 543         X(msdos_create),
 544         X(msdos_file_read),
 545         X(msdos_file_write),
 546         X(msdos_lookup),
 547         X(msdos_mkdir),
 548         X(msdos_mmap),
 549         X(msdos_put_inode),
 550         X(msdos_put_super),
 551         X(msdos_read_inode),
 552         X(msdos_read_super),
 553         X(msdos_readdir),
 554         X(msdos_rename),
 555         X(msdos_rmdir),
 556         X(msdos_smap),
 557         X(msdos_statfs),
 558         X(msdos_truncate),
 559         X(msdos_unlink),
 560         X(msdos_unlink_umsdos),
 561         X(msdos_write_inode),
 562 #endif
 563 #ifdef CONFIG_PROC_FS
 564         X(proc_register),
 565         X(proc_unregister),
 566         X(in_group_p),
 567         X(generate_cluster),
 568         X(proc_scsi),
 569         X(proc_net_inode_operations),
 570         X(proc_net),
 571 #endif
 572 /* all busmice */
 573         X(add_mouse_randomness),
 574         X(fasync_helper),
 575 /* psaux mouse */
 576         X(aux_device_present),
 577         X(kbd_read_mask),
 578 
 579 #ifdef CONFIG_TR
 580         X(tr_setup),
 581         X(tr_type_trans),
 582 #endif
 583 
 584 #ifdef CONFIG_BINFMT_ELF
 585         X(dump_fpu),
 586 #endif
 587 
 588         /********************************************************
 589          * Do not add anything below this line,
 590          * as the stacked modules depend on this!
 591          */
 592 #include <linux/symtab_end.h>
 593 };
 594 
 595 /*
 596 int symbol_table_size = sizeof (symbol_table) / sizeof (symbol_table[0]);
 597 */

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