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

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