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

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