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

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