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 struct symbol_table symbol_table = {
 110 #include <linux/symtab_begin.h>
 111 #ifdef MODVERSIONS
 112         { (void *)1 /* Version version :-) */,
 113                 SYMBOL_NAME_STR (Using_Versions) },
 114 #endif
 115 
 116         /* stackable module support */
 117         X(rename_module_symbol),
 118         X(register_symtab),
 119 #ifdef CONFIG_KERNELD
 120         X(kerneld_send),
 121 #endif
 122         X(get_options),
 123 
 124         /* system info variables */
 125         /* These check that they aren't defines (0/1) */
 126 #ifndef EISA_bus__is_a_macro
 127         X(EISA_bus),
 128 #endif
 129 #ifndef MCA_bus__is_a_macro
 130         X(MCA_bus),
 131 #endif
 132 #ifndef wp_works_ok__is_a_macro
 133         X(wp_works_ok),
 134 #endif
 135 
 136 #ifdef CONFIG_PCI
 137         /* PCI BIOS support */
 138         X(pcibios_present),
 139         X(pcibios_find_class),
 140         X(pcibios_find_device),
 141         X(pcibios_read_config_byte),
 142         X(pcibios_read_config_word),
 143         X(pcibios_read_config_dword),
 144         X(pcibios_strerror),
 145         X(pcibios_write_config_byte),
 146         X(pcibios_write_config_word),
 147         X(pcibios_write_config_dword),
 148 #endif
 149 
 150         /* process memory management */
 151         X(verify_area),
 152         X(do_mmap),
 153         X(do_munmap),
 154         X(insert_vm_struct),
 155         X(merge_segments),
 156 
 157         /* internal kernel memory management */
 158         X(__get_free_pages),
 159         X(free_pages),
 160         X(kmalloc),
 161         X(kfree),
 162         X(vmalloc),
 163         X(vremap),
 164         X(vfree),
 165         X(mem_map),
 166         X(remap_page_range),
 167         X(high_memory),
 168         X(update_vm_cache),
 169 
 170         /* filesystem internal functions */
 171         X(getname),
 172         X(putname),
 173         X(__iget),
 174         X(iput),
 175         X(namei),
 176         X(lnamei),
 177         X(open_namei),
 178         X(sys_close),
 179         X(close_fp),
 180         X(check_disk_change),
 181         X(invalidate_buffers),
 182         X(invalidate_inodes),
 183         X(invalidate_inode_pages),
 184         X(fsync_dev),
 185         X(permission),
 186         X(inode_setattr),
 187         X(inode_change_ok),
 188         X(set_blocksize),
 189         X(getblk),
 190         X(bread),
 191         X(breada),
 192         X(__brelse),
 193         X(__bforget),
 194         X(ll_rw_block),
 195         X(__wait_on_buffer),
 196         X(__wait_on_page),
 197         X(mark_buffer_uptodate),
 198         X(unlock_buffer),
 199         X(dcache_lookup),
 200         X(dcache_add),
 201         X(add_blkdev_randomness),
 202         X(generic_file_read),
 203         X(generic_file_mmap),
 204         X(generic_readpage),
 205 
 206         /* device registration */
 207         X(register_chrdev),
 208         X(unregister_chrdev),
 209         X(register_blkdev),
 210         X(unregister_blkdev),
 211         X(tty_register_driver),
 212         X(tty_unregister_driver),
 213         X(tty_std_termios),
 214 
 215         /* block device driver support */
 216         X(block_read),
 217         X(block_write),
 218         X(block_fsync),
 219         X(wait_for_request),
 220         X(blksize_size),
 221         X(hardsect_size),
 222         X(blk_size),
 223         X(blk_dev),
 224         X(is_read_only),
 225         X(set_device_ro),
 226         X(bmap),
 227         X(sync_dev),
 228         X(get_blkfops),
 229         
 230         /* Module creation of serial units */
 231         X(register_serial),
 232         X(unregister_serial),
 233 
 234         /* tty routines */
 235         X(tty_hangup),
 236         X(tty_wait_until_sent),
 237         X(tty_check_change),
 238         X(tty_hung_up_p),
 239         X(do_SAK),
 240         X(console_print),
 241 
 242         /* filesystem registration */
 243         X(register_filesystem),
 244         X(unregister_filesystem),
 245 
 246         /* executable format registration */
 247         X(register_binfmt),
 248         X(unregister_binfmt),
 249 
 250         /* execution environment registration */
 251         X(lookup_exec_domain),
 252         X(register_exec_domain),
 253         X(unregister_exec_domain),
 254 
 255         /* sysctl table registration */
 256         X(register_sysctl_table),
 257         X(unregister_sysctl_table),
 258 
 259         /* interrupt handling */
 260         X(request_irq),
 261         X(free_irq),
 262         X(enable_irq),
 263         X(disable_irq),
 264         X(probe_irq_on),
 265         X(probe_irq_off),
 266         X(bh_active),
 267         X(bh_mask),
 268         X(bh_base),
 269         X(add_timer),
 270         X(del_timer),
 271         X(tq_timer),
 272         X(tq_immediate),
 273         X(tq_scheduler),
 274         X(tq_last),
 275         X(timer_active),
 276         X(timer_table),
 277         X(intr_count),
 278 
 279         /* autoirq from  drivers/net/auto_irq.c */
 280         X(autoirq_setup),
 281         X(autoirq_report),
 282 
 283         /* dma handling */
 284         X(request_dma),
 285         X(free_dma),
 286 #ifdef HAVE_DISABLE_HLT
 287         X(disable_hlt),
 288         X(enable_hlt),
 289 #endif
 290 
 291         /* IO port handling */
 292         X(check_region),
 293         X(request_region),
 294         X(release_region),
 295 
 296         /* process management */
 297         X(wake_up),
 298         X(wake_up_interruptible),
 299         X(sleep_on),
 300         X(interruptible_sleep_on),
 301         X(schedule),
 302         X(current_set),
 303         X(jiffies),
 304         X(xtime),
 305         X(do_gettimeofday),
 306         X(loops_per_sec),
 307         X(need_resched),
 308         X(kstat),
 309         X(kill_proc),
 310         X(kill_pg),
 311         X(kill_sl),
 312 
 313         /* misc */
 314         X(panic),
 315         X(printk),
 316         X(sprintf),
 317         X(vsprintf),
 318         X(kdevname),
 319         X(simple_strtoul),
 320         X(system_utsname),
 321         X(sys_call_table),
 322 
 323         /* Signal interfaces */
 324         X(send_sig),
 325 
 326         /* Program loader interfaces */
 327         X(setup_arg_pages),
 328         X(copy_strings),
 329         X(create_tables),
 330         X(do_execve),
 331         X(flush_old_exec),
 332         X(open_inode),
 333         X(read_exec),
 334 
 335         /* Miscellaneous access points */
 336         X(si_meminfo),
 337 #ifdef CONFIG_NET
 338         /* Socket layer registration */
 339         X(sock_register),
 340         X(sock_unregister),
 341         /* Socket layer support routines */
 342         X(skb_recv_datagram),
 343         X(skb_free_datagram),
 344         X(skb_copy_datagram),
 345         X(skb_copy_datagram_iovec),
 346         X(datagram_select),
 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         /* bimfm_aout */
 469         X(get_write_access),
 470         X(put_write_access),
 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] */