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

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