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

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