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

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