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

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