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

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