linux-old/kernel/ksyms.c
<<
>>
Prefs
   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#ifdef CONFIG_INET
  41#include <linux/ip.h>
  42#include <linux/tcp.h>
  43#include "../net/inet/protocol.h"
  44#include "../net/inet/arp.h"
  45#if defined(CONFIG_PPP) || defined(CONFIG_SLIP)
  46#include "../drivers/net/slhc.h"
  47#endif
  48#endif
  49#endif
  50#ifdef CONFIG_PCI
  51#include <linux/pci.h>
  52#endif
  53#if defined(CONFIG_MSDOS_FS) && !defined(CONFIG_UMSDOS_FS)
  54#include <linux/msdos_fs.h>
  55#endif
  56
  57#include <asm/irq.h>
  58extern char floppy_track_buffer[];
  59extern void set_device_ro(int dev,int flag);
  60extern struct file_operations * get_blkfops(unsigned int);
  61  
  62extern void *sys_call_table;
  63
  64#ifdef CONFIG_FTAPE
  65extern char * ftape_big_buffer;
  66#endif
  67
  68#ifdef CONFIG_SCSI
  69#include "../drivers/scsi/scsi.h"
  70#include "../drivers/scsi/hosts.h"
  71#include "../drivers/scsi/constants.h"
  72#endif
  73
  74extern int sys_tz;
  75extern int request_dma(unsigned int dmanr, char * deviceID);
  76extern void free_dma(unsigned int dmanr);
  77
  78extern int close_fp(struct file *filp);
  79extern void (* iABI_hook)(struct pt_regs * regs);
  80
  81struct symbol_table symbol_table = {
  82#include <linux/symtab_begin.h>
  83#ifdef CONFIG_MODVERSIONS
  84        { (void *)1 /* Version version :-) */, "_Using_Versions" },
  85#endif
  86        /* stackable module support */
  87        X(rename_module_symbol),
  88        X(register_symtab),
  89
  90        /* system info variables */
  91        /* These check that they aren't defines (0/1) */
  92#ifndef EISA_bus__is_a_macro
  93        X(EISA_bus),
  94#endif
  95#ifndef MCA_bus__is_a_macro
  96        X(MCA_bus),
  97#endif
  98#ifndef wp_works_ok__is_a_macro
  99        X(wp_works_ok),
 100#endif
 101
 102#ifdef CONFIG_PCI
 103        /* PCI BIOS support */
 104        X(pcibios_present),
 105        X(pcibios_find_class),
 106        X(pcibios_find_device),
 107        X(pcibios_read_config_byte),
 108        X(pcibios_read_config_word),
 109        X(pcibios_read_config_dword),
 110        X(pcibios_strerror),
 111        X(pcibios_write_config_byte),
 112        X(pcibios_write_config_word),
 113        X(pcibios_write_config_dword),
 114#endif
 115
 116        /* process memory management */
 117        X(verify_area),
 118        X(do_mmap),
 119        X(do_munmap),
 120        X(zeromap_page_range),
 121        X(unmap_page_range),
 122        X(insert_vm_struct),
 123        X(merge_segments),
 124
 125        /* internal kernel memory management */
 126        X(__get_free_pages),
 127        X(free_pages),
 128        X(kmalloc),
 129        X(kfree_s),
 130        X(vmalloc),
 131        X(vfree),
 132
 133        /* filesystem internal functions */
 134        X(getname),
 135        X(putname),
 136        X(__iget),
 137        X(iput),
 138        X(namei),
 139        X(lnamei),
 140        X(open_namei),
 141        X(close_fp),
 142        X(check_disk_change),
 143        X(invalidate_buffers),
 144        X(fsync_dev),
 145        X(permission),
 146        X(inode_setattr),
 147        X(inode_change_ok),
 148        X(generic_mmap),
 149        X(set_blocksize),
 150        X(getblk),
 151        X(bread),
 152        X(breada),
 153        X(brelse),
 154        X(ll_rw_block),
 155        X(__wait_on_buffer),
 156        X(dcache_lookup),
 157        X(dcache_add),
 158
 159        /* device registration */
 160        X(register_chrdev),
 161        X(unregister_chrdev),
 162        X(register_blkdev),
 163        X(unregister_blkdev),
 164        X(tty_register_driver),
 165        X(tty_unregister_driver),
 166        X(tty_std_termios),
 167
 168        /* block device driver support */
 169        X(block_read),
 170        X(block_write),
 171        X(block_fsync),
 172        X(wait_for_request),
 173        X(blksize_size),
 174        X(hardsect_size),
 175        X(blk_size),
 176        X(blk_dev),
 177        X(is_read_only),
 178        X(set_device_ro),
 179        X(bmap),
 180        X(sync_dev),
 181        X(get_blkfops),
 182        
 183        /* Module creation of serial units */
 184        X(register_serial),
 185        X(unregister_serial),
 186
 187        /* tty routines */
 188        X(tty_hangup),
 189        X(tty_wait_until_sent),
 190        X(tty_check_change),
 191        X(tty_hung_up_p),
 192
 193        /* filesystem registration */
 194        X(register_filesystem),
 195        X(unregister_filesystem),
 196
 197        /* executable format registration */
 198        X(register_binfmt),
 199        X(unregister_binfmt),
 200
 201        /* execution environment registration */
 202        X(lookup_exec_domain),
 203        X(register_exec_domain),
 204        X(unregister_exec_domain),
 205
 206        /* interrupt handling */
 207        X(request_irq),
 208        X(free_irq),
 209        X(enable_irq),
 210        X(disable_irq),
 211        X(bh_active),
 212        X(bh_mask),
 213        X(add_timer),
 214        X(del_timer),
 215        X(tq_timer),
 216        X(tq_immediate),
 217        X(tq_scheduler),
 218        X(tq_last),
 219        X(timer_active),
 220        X(timer_table),
 221
 222        /* dma handling */
 223        X(request_dma),
 224        X(free_dma),
 225#ifdef HAVE_DISABLE_HLT
 226        X(disable_hlt),
 227        X(enable_hlt),
 228#endif
 229
 230        /* IO port handling */
 231        X(check_region),
 232        X(request_region),
 233        X(release_region),
 234
 235        /* process management */
 236        X(wake_up),
 237        X(wake_up_interruptible),
 238        X(sleep_on),
 239        X(interruptible_sleep_on),
 240        X(schedule),
 241        X(current),
 242        X(jiffies),
 243        X(xtime),
 244        X(loops_per_sec),
 245        X(need_resched),
 246        X(kill_proc),
 247        X(kill_pg),
 248        X(kill_sl),
 249
 250        /* misc */
 251        X(panic),
 252        X(printk),
 253        X(sprintf),
 254        X(vsprintf),
 255        X(simple_strtoul),
 256        X(system_utsname),
 257        X(sys_call_table),
 258
 259        /* Signal interfaces */
 260        X(do_signal),
 261        X(send_sig),
 262
 263        /* Program loader interfaces */
 264        X(setup_arg_pages),
 265        X(copy_strings),
 266        X(create_tables),
 267        X(do_execve),
 268        X(flush_old_exec),
 269        X(open_inode),
 270        X(read_exec),
 271
 272        /* Miscellaneous access points */
 273        X(si_meminfo),
 274#ifdef CONFIG_NET
 275        /* socket layer registration */
 276        X(sock_register),
 277        X(sock_unregister),
 278        /* Internet layer registration */
 279#ifdef CONFIG_INET      
 280        X(inet_add_protocol),
 281        X(inet_del_protocol),
 282#if defined(CONFIG_PPP) || defined(CONFIG_SLIP)
 283        /* VJ header compression */
 284        X(slhc_init),
 285        X(slhc_free),
 286        X(slhc_remember),
 287        X(slhc_compress),
 288        X(slhc_uncompress),
 289        X(slhc_toss),
 290#endif
 291#endif
 292        /* Device callback registration */
 293        X(register_netdevice_notifier),
 294        X(unregister_netdevice_notifier),
 295#endif
 296
 297#ifdef CONFIG_FTAPE
 298        /* The next labels are needed for ftape driver.  */
 299        X(ftape_big_buffer),
 300#endif
 301        X(floppy_track_buffer),
 302#ifdef CONFIG_INET
 303        /* support for loadable net drivers */
 304        X(register_netdev),
 305        X(unregister_netdev),
 306        X(ether_setup),
 307        X(alloc_skb),
 308        X(kfree_skb),
 309        X(dev_kfree_skb),
 310        X(netif_rx),
 311        X(dev_rint),
 312        X(dev_tint),
 313        X(irq2dev_map),
 314        X(dev_add_pack),
 315        X(dev_remove_pack),
 316        X(dev_get),
 317        X(dev_ioctl),
 318        X(dev_queue_xmit),
 319        X(dev_base),
 320        X(dev_close),
 321        X(arp_find),
 322        X(n_tty_ioctl),
 323        X(tty_register_ldisc),
 324        X(kill_fasync),
 325#endif
 326#ifdef CONFIG_SCSI
 327        /* Supports loadable scsi drivers */
 328        /* 
 329         * in_scan_scsis is a hack, and should go away once the new 
 330         * memory allocation code is in the NCR driver 
 331         */
 332        X(in_scan_scsis),
 333        X(scsi_register_module),
 334        X(scsi_unregister_module),
 335        X(scsi_free),
 336        X(scsi_malloc),
 337        X(scsi_register),
 338        X(scsi_unregister),
 339        X(scsicam_bios_param),
 340        X(scsi_init_malloc),
 341        X(scsi_init_free),
 342        X(print_command),
 343        X(print_msg),
 344        X(print_status),
 345#endif
 346        /* Added to make file system as module */
 347        X(set_writetime),
 348        X(sys_tz),
 349        X(__wait_on_super),
 350        X(file_fsync),
 351        X(clear_inode),
 352        X(refile_buffer),
 353        X(___strtok),
 354        X(init_fifo),
 355        X(super_blocks),
 356        X(chrdev_inode_operations),
 357        X(blkdev_inode_operations),
 358        X(read_ahead),
 359        X(get_hash_table),
 360        X(get_empty_inode),
 361        X(insert_inode_hash),
 362        X(event),
 363        X(__down),
 364#if defined(CONFIG_MSDOS_FS) && !defined(CONFIG_UMSDOS_FS)
 365        /* support for umsdos fs */
 366        X(msdos_bmap),
 367        X(msdos_create),
 368        X(msdos_file_read),
 369        X(msdos_file_write),
 370        X(msdos_lookup),
 371        X(msdos_mkdir),
 372        X(msdos_mmap),
 373        X(msdos_put_inode),
 374        X(msdos_put_super),
 375        X(msdos_read_inode),
 376        X(msdos_read_super),
 377        X(msdos_readdir),
 378        X(msdos_rename),
 379        X(msdos_rmdir),
 380        X(msdos_smap),
 381        X(msdos_statfs),
 382        X(msdos_truncate),
 383        X(msdos_unlink),
 384        X(msdos_unlink_umsdos),
 385        X(msdos_write_inode),
 386#endif
 387        /********************************************************
 388         * Do not add anything below this line,
 389         * as the stacked modules depend on this!
 390         */
 391#include <linux/symtab_end.h>
 392};
 393
 394/*
 395int symbol_table_size = sizeof (symbol_table) / sizeof (symbol_table[0]);
 396*/
 397
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.