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/module.h>
  13 #include <linux/config.h>
  14 #include <linux/kernel.h>
  15 #include <linux/smp.h>
  16 #include <linux/fs.h>
  17 #include <linux/blkdev.h>
  18 #include <linux/sched.h>
  19 #include <linux/kernel_stat.h>
  20 #include <linux/mm.h>
  21 #include <linux/malloc.h>
  22 #include <linux/ptrace.h>
  23 #include <linux/sys.h>
  24 #include <linux/utsname.h>
  25 #include <linux/interrupt.h>
  26 #include <linux/ioport.h>
  27 #include <linux/timer.h>
  28 #include <linux/binfmts.h>
  29 #include <linux/personality.h>
  30 #include <linux/termios.h>
  31 #include <linux/tqueue.h>
  32 #include <linux/tty.h>
  33 #include <linux/serial.h>
  34 #include <linux/locks.h>
  35 #include <linux/string.h>
  36 #include <linux/delay.h>
  37 #include <linux/sem.h>
  38 #include <linux/minix_fs.h>
  39 #include <linux/ext2_fs.h>
  40 #include <linux/random.h>
  41 #include <linux/mount.h>
  42 #include <linux/pagemap.h>
  43 #include <linux/sysctl.h>
  44 #include <linux/skbuff.h>
  45 #include <linux/genhd.h>
  46 #include <linux/swap.h>
  47 
  48 extern unsigned char aux_device_present, kbd_read_mask;
  49 
  50 #ifdef CONFIG_NET
  51 #include <linux/in.h>
  52 #include <linux/net.h>
  53 #include <linux/netdevice.h>
  54 #include <linux/firewall.h>
  55 #include <linux/trdevice.h>
  56 
  57 #ifdef CONFIG_AX25
  58 #include <net/ax25.h>
  59 #endif
  60 #ifdef CONFIG_INET
  61 #include <linux/ip.h>
  62 #include <linux/etherdevice.h>
  63 #include <net/protocol.h>
  64 #include <net/arp.h>
  65 #include <net/ip.h>
  66 #include <net/udp.h>
  67 #include <net/tcp.h>
  68 #include <net/icmp.h>
  69 #include <net/route.h>
  70 #include <linux/net_alias.h>
  71 #endif
  72 #ifdef CONFIG_NET_ALIAS
  73 #include <linux/net_alias.h>
  74 #endif
  75 #endif
  76 #ifdef CONFIG_PCI
  77 #include <linux/bios32.h>
  78 #include <linux/pci.h>
  79 #endif
  80 #if defined(CONFIG_PROC_FS)
  81 #include <linux/proc_fs.h>
  82 #endif
  83 #ifdef CONFIG_KERNELD
  84 #include <linux/kerneld.h>
  85 #endif
  86 #include <asm/irq.h>
  87 #ifdef __SMP__
  88 #include <linux/smp.h>
  89 #endif
  90 
  91 extern char *get_options(char *str, int *ints);
  92 extern void set_device_ro(int dev,int flag);
  93 extern struct file_operations * get_blkfops(unsigned int);
  94 
  95 extern void *sys_call_table;
  96 
  97 #if     defined(CONFIG_ULTRA)   ||      defined(CONFIG_WD80x3)          || \
  98         defined(CONFIG_EL2)     ||      defined(CONFIG_NE2000)          || \
  99         defined(CONFIG_E2100)   ||      defined(CONFIG_HPLAN_PLUS)      || \
 100         defined(CONFIG_HPLAN)   ||      defined(CONFIG_AC3200)          
 101 #include "../drivers/net/8390.h"
 102 #endif
 103 
 104 extern int sys_tz;
 105 extern int request_dma(unsigned int dmanr, char * deviceID);
 106 extern void free_dma(unsigned int dmanr);
 107 extern int (*rarp_ioctl_hook)(int,void*);
 108 
 109 extern void (* iABI_hook)(struct pt_regs * regs);
 110 
 111 #ifdef CONFIG_BINFMT_ELF
 112 #include <linux/elfcore.h>
 113 extern int dump_fpu(elf_fpregset_t *);
 114 #endif
 115 
 116 struct symbol_table symbol_table = {
 117 #include <linux/symtab_begin.h>
 118 #ifdef MODVERSIONS
 119         { (void *)1 /* Version version :-) */,
 120                 SYMBOL_NAME_STR (Using_Versions) },
 121 #endif
 122 
 123         /* stackable module support */
 124         X(rename_module_symbol),
 125         X(register_symtab),
 126 #ifdef CONFIG_KERNELD
 127         X(kerneld_send),
 128 #endif
 129         X(get_options),
 130 
 131         /* system info variables */
 132         /* These check that they aren't defines (0/1) */
 133 #ifndef EISA_bus__is_a_macro
 134         X(EISA_bus),
 135 #endif
 136 #ifndef MCA_bus__is_a_macro
 137         X(MCA_bus),
 138 #endif
 139 #ifndef wp_works_ok__is_a_macro
 140         X(wp_works_ok),
 141 #endif
 142 
 143 #ifdef CONFIG_PCI
 144         /* PCI BIOS support */
 145         X(pcibios_present),
 146         X(pcibios_find_class),
 147         X(pcibios_find_device),
 148         X(pcibios_read_config_byte),
 149         X(pcibios_read_config_word),
 150         X(pcibios_read_config_dword),
 151         X(pcibios_strerror),
 152         X(pcibios_write_config_byte),
 153         X(pcibios_write_config_word),
 154         X(pcibios_write_config_dword),
 155 #endif
 156 
 157         /* process memory management */
 158         X(verify_area),
 159         X(do_mmap),
 160         X(do_munmap),
 161         X(insert_vm_struct),
 162         X(merge_segments),
 163 
 164         /* internal kernel memory management */
 165         X(__get_free_pages),
 166         X(free_pages),
 167         X(kmalloc),
 168         X(kfree),
 169         X(vmalloc),
 170         X(vremap),
 171         X(vfree),
 172         X(mem_map),
 173         X(remap_page_range),
 174         X(high_memory),
 175         X(update_vm_cache),
 176 
 177         /* filesystem internal functions */
 178         X(getname),
 179         X(putname),
 180         X(__iget),
 181         X(iput),
 182         X(namei),
 183         X(lnamei),
 184         X(open_namei),
 185         X(close_fp),
 186         X(check_disk_change),
 187         X(invalidate_buffers),
 188         X(invalidate_inodes),
 189         X(fsync_dev),
 190         X(permission),
 191         X(inode_setattr),
 192         X(inode_change_ok),
 193         X(generic_mmap),
 194         X(set_blocksize),
 195         X(getblk),
 196         X(bread),
 197         X(breada),
 198         X(__brelse),
 199         X(__bforget),
 200         X(ll_rw_block),
 201         X(__wait_on_buffer),
 202         X(mark_buffer_uptodate),
 203         X(unlock_buffer),
 204         X(dcache_lookup),
 205         X(dcache_add),
 206         X(aout_core_dump),
 207         X(add_blkdev_randomness),
 208         X(generic_file_read),
 209         X(generic_readpage),
 210         X(mark_buffer_uptodate),
 211 
 212         /* device registration */
 213         X(register_chrdev),
 214         X(unregister_chrdev),
 215         X(register_blkdev),
 216         X(unregister_blkdev),
 217         X(tty_register_driver),
 218         X(tty_unregister_driver),
 219         X(tty_std_termios),
 220 
 221         /* block device driver support */
 222         X(block_read),
 223         X(block_write),
 224         X(block_fsync),
 225         X(wait_for_request),
 226         X(blksize_size),
 227         X(hardsect_size),
 228         X(blk_size),
 229         X(blk_dev),
 230         X(is_read_only),
 231         X(set_device_ro),
 232         X(bmap),
 233         X(sync_dev),
 234         X(get_blkfops),
 235         
 236         /* Module creation of serial units */
 237         X(register_serial),
 238         X(unregister_serial),
 239 
 240         /* tty routines */
 241         X(tty_hangup),
 242         X(tty_wait_until_sent),
 243         X(tty_check_change),
 244         X(tty_hung_up_p),
 245         X(do_SAK),
 246         X(console_print),
 247 
 248         /* filesystem registration */
 249         X(register_filesystem),
 250         X(unregister_filesystem),
 251 
 252         /* executable format registration */
 253         X(register_binfmt),
 254         X(unregister_binfmt),
 255 
 256         /* execution environment registration */
 257         X(lookup_exec_domain),
 258         X(register_exec_domain),
 259         X(unregister_exec_domain),
 260 
 261         /* sysctl table registration */
 262         X(register_sysctl_table),
 263         X(unregister_sysctl_table),
 264 
 265         /* interrupt handling */
 266         X(request_irq),
 267         X(free_irq),
 268         X(enable_irq),
 269         X(disable_irq),
 270         X(probe_irq_on),
 271         X(probe_irq_off),
 272         X(bh_active),
 273         X(bh_mask),
 274         X(bh_base),
 275         X(add_timer),
 276         X(del_timer),
 277         X(tq_timer),
 278         X(tq_immediate),
 279         X(tq_scheduler),
 280         X(tq_last),
 281         X(timer_active),
 282         X(timer_table),
 283         X(intr_count),
 284 
 285         /* autoirq from  drivers/net/auto_irq.c */
 286         X(autoirq_setup),
 287         X(autoirq_report),
 288 
 289         /* dma handling */
 290         X(request_dma),
 291         X(free_dma),
 292 #ifdef HAVE_DISABLE_HLT
 293         X(disable_hlt),
 294         X(enable_hlt),
 295 #endif
 296 
 297         /* IO port handling */
 298         X(check_region),
 299         X(request_region),
 300         X(release_region),
 301 
 302         /* process management */
 303         X(wake_up),
 304         X(wake_up_interruptible),
 305         X(sleep_on),
 306         X(interruptible_sleep_on),
 307         X(schedule),
 308         X(current_set),
 309         X(jiffies),
 310         X(xtime),
 311         X(do_gettimeofday),
 312         X(loops_per_sec),
 313         X(need_resched),
 314         X(kstat),
 315         X(kill_proc),
 316         X(kill_pg),
 317         X(kill_sl),
 318 
 319         /* misc */
 320         X(panic),
 321         X(printk),
 322         X(sprintf),
 323         X(vsprintf),
 324         X(kdevname),
 325         X(simple_strtoul),
 326         X(system_utsname),
 327         X(sys_call_table),
 328 
 329         /* Signal interfaces */
 330         X(send_sig),
 331 
 332         /* Program loader interfaces */
 333         X(setup_arg_pages),
 334         X(copy_strings),
 335         X(create_tables),
 336         X(do_execve),
 337         X(flush_old_exec),
 338         X(open_inode),
 339         X(read_exec),
 340 
 341         /* Miscellaneous access points */
 342         X(si_meminfo),
 343 #ifdef CONFIG_NET
 344         /* Socket layer registration */
 345         X(sock_register),
 346         X(sock_unregister),
 347 #ifdef CONFIG_FIREWALL
 348         /* Firewall registration */
 349         X(register_firewall),
 350         X(unregister_firewall),
 351 #endif
 352 #ifdef CONFIG_INET      
 353         /* Internet layer registration */
 354         X(inet_add_protocol),
 355         X(inet_del_protocol),
 356         X(rarp_ioctl_hook),
 357         X(init_etherdev),
 358         X(ip_rt_route),
 359         X(icmp_send),
 360         X(ip_options_compile),
 361         X(ip_rt_put),
 362         X(arp_send),
 363 #ifdef CONFIG_IP_FORWARD
 364         X(ip_forward),
 365 #endif
 366 #if     defined(CONFIG_ULTRA)   ||      defined(CONFIG_WD80x3)          || \
 367         defined(CONFIG_EL2)     ||      defined(CONFIG_NE2000)          || \
 368         defined(CONFIG_E2100)   ||      defined(CONFIG_HPLAN_PLUS)      || \
 369         defined(CONFIG_HPLAN)   ||      defined(CONFIG_AC3200)
 370         /* If 8390 NIC support is built in, we will need these. */
 371         X(ei_open),
 372         X(ei_close),
 373         X(ei_debug),
 374         X(ei_interrupt),
 375         X(ethdev_init),
 376         X(NS8390_init),
 377 #endif
 378 #ifdef CONFIG_NET_ALIAS
 379 #include <linux/net_alias.h>
 380 #endif
 381 #endif
 382         /* Device callback registration */
 383         X(register_netdevice_notifier),
 384         X(unregister_netdevice_notifier),
 385 #ifdef CONFIG_NET_ALIAS
 386         X(register_net_alias_type),
 387         X(unregister_net_alias_type),
 388 #endif
 389 #endif
 390 
 391         /* support for loadable net drivers */
 392 #ifdef CONFIG_AX25
 393         X(ax25_encapsulate),
 394         X(ax25_rebuild_header), 
 395 #endif  
 396 #ifdef CONFIG_INET
 397         X(register_netdev),
 398         X(unregister_netdev),
 399         X(ether_setup),
 400         X(eth_type_trans),
 401         X(eth_copy_and_sum),
 402         X(alloc_skb),
 403         X(kfree_skb),
 404         X(skb_clone),
 405         X(dev_alloc_skb),
 406         X(dev_kfree_skb),
 407         X(netif_rx),
 408         X(dev_tint),
 409         X(irq2dev_map),
 410         X(dev_add_pack),
 411         X(dev_remove_pack),
 412         X(dev_get),
 413         X(dev_ioctl),
 414         X(dev_queue_xmit),
 415         X(dev_base),
 416         X(dev_close),
 417         X(arp_find),
 418         X(n_tty_ioctl),
 419         X(tty_register_ldisc),
 420         X(kill_fasync),
 421 #ifdef CONFIG_FIREWALL
 422         X(call_in_firewall),
 423 #endif
 424 #endif
 425 #ifndef CONFIG_SCSI
 426         /*
 427          * With no scsi configured, we still need to export a few
 428          * symbols so that scsi can be loaded later via insmod.
 429          * Don't remove this unless you are 100% sure of what you are
 430          * doing.  If you want to remove this, you don't know what
 431          * you are doing!
 432          */
 433         X(gendisk_head),
 434         X(resetup_one_dev),
 435 #endif
 436         /* Added to make file system as module */
 437         X(set_writetime),
 438         X(sys_tz),
 439         X(__wait_on_super),
 440         X(file_fsync),
 441         X(clear_inode),
 442         X(refile_buffer),
 443         X(nr_async_pages),
 444         X(___strtok),
 445         X(init_fifo),
 446         X(super_blocks),
 447         X(reuse_list),
 448         X(chrdev_inode_operations),
 449         X(blkdev_inode_operations),
 450         X(read_ahead),
 451         X(get_hash_table),
 452         X(get_empty_inode),
 453         X(insert_inode_hash),
 454         X(event),
 455         X(__down),
 456 /* all busmice */
 457         X(add_mouse_randomness),
 458         X(fasync_helper),
 459 /* psaux mouse */
 460         X(aux_device_present),
 461         X(kbd_read_mask),
 462 
 463 #ifdef CONFIG_TR
 464         X(tr_setup),
 465         X(tr_type_trans),
 466 #endif
 467 
 468 #ifdef CONFIG_BINFMT_ELF
 469         X(dump_fpu),
 470 #endif
 471 
 472         /********************************************************
 473          * Do not add anything below this line,
 474          * as the stacked modules depend on this!
 475          */
 476 #include <linux/symtab_end.h>
 477 };
 478 
 479 /*
 480 int symbol_table_size = sizeof (symbol_table) / sizeof (symbol_table[0]);
 481 */

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