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

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