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

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