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 by
   7  * Bjorn Ekwall <bj0rn@blox.se>
   8  */
   9 
  10 #include <linux/autoconf.h>
  11 #include <linux/kernel.h>
  12 #include <linux/fs.h>
  13 #include <linux/blkdev.h>
  14 #include <linux/sched.h>
  15 #include <linux/mm.h>
  16 #include <linux/malloc.h>
  17 #include <linux/ptrace.h>
  18 #include <linux/sys.h>
  19 #include <linux/utsname.h>
  20 #include <linux/interrupt.h>
  21 #include <linux/ioport.h>
  22 #include <linux/timer.h>
  23 #include <linux/binfmts.h>
  24 #include <linux/personality.h>
  25 #include <linux/module.h>
  26 #include <linux/termios.h>
  27 #include <linux/tqueue.h>
  28 #include <linux/tty.h>
  29 #include <linux/serial.h>
  30 #include <linux/locks.h>
  31 #include <linux/string.h>
  32 #include <linux/delay.h>
  33 #include <linux/config.h>
  34 
  35 #ifdef CONFIG_INET
  36 #include <linux/net.h>
  37 #include <linux/netdevice.h>
  38 #endif
  39 #ifdef CONFIG_PCI
  40 #include <linux/pci.h>
  41 #endif
  42 #if defined(CONFIG_MSDOS_FS) && !defined(CONFIG_UMSDOS_FS)
  43 #include <linux/msdos_fs.h>
  44 #endif
  45 
  46 #include <asm/irq.h>
  47 extern char floppy_track_buffer[];
  48 extern void set_device_ro(int dev,int flag);
  49 extern struct file_operations * get_blkfops(unsigned int);
  50   
  51 extern void *sys_call_table;
  52 
  53 /* must match struct internal_symbol !!! */
  54 #define X(name) { (void *) &name, "_" #name }
  55 
  56 #ifdef CONFIG_FTAPE
  57 extern char * ftape_big_buffer;
  58 extern void (*do_floppy)(void);
  59 #endif
  60 
  61 #ifdef CONFIG_SCSI
  62 #include "../drivers/scsi/scsi.h"
  63 #include "../drivers/scsi/hosts.h"
  64 #endif
  65 
  66 extern int sys_tz;
  67 extern int request_dma(unsigned int dmanr, char * deviceID);
  68 extern void free_dma(unsigned int dmanr);
  69 
  70 extern void (* iABI_hook)(struct pt_regs * regs);
  71 
  72 struct symbol_table symbol_table = { 0, 0, 0, /* for stacked module support */
  73         {
  74         /* stackable module support */
  75         X(rename_module_symbol),
  76 
  77         /* system info variables */
  78         /* These check that they aren't defines (0/1) */
  79 #ifndef EISA_bus
  80         X(EISA_bus),
  81 #endif
  82 #ifndef MCA_bus
  83         X(MCA_bus),
  84 #endif
  85 #ifndef wp_works_ok
  86         X(wp_works_ok),
  87 #endif
  88 
  89 #ifdef CONFIG_PCI
  90         /* PCI BIOS support */
  91         X(pcibios_present),
  92         X(pcibios_find_class),
  93         X(pcibios_find_device),
  94         X(pcibios_read_config_byte),
  95         X(pcibios_read_config_word),
  96         X(pcibios_read_config_dword),
  97         X(pcibios_write_config_byte),
  98         X(pcibios_write_config_word),
  99         X(pcibios_write_config_dword),
 100 #endif
 101 
 102         /* process memory management */
 103         X(verify_area),
 104         X(do_mmap),
 105         X(do_munmap),
 106         X(zeromap_page_range),
 107         X(unmap_page_range),
 108         X(insert_vm_struct),
 109         X(merge_segments),
 110 
 111         /* internal kernel memory management */
 112         X(__get_free_pages),
 113         X(free_pages),
 114         X(kmalloc),
 115         X(kfree_s),
 116         X(vmalloc),
 117         X(vfree),
 118 
 119         /* filesystem internal functions */
 120         X(getname),
 121         X(putname),
 122         X(__iget),
 123         X(iput),
 124         X(namei),
 125         X(lnamei),
 126         X(open_namei),
 127         X(check_disk_change),
 128         X(invalidate_buffers),
 129         X(fsync_dev),
 130         X(permission),
 131         X(inode_setattr),
 132         X(inode_change_ok),
 133         X(generic_mmap),
 134         X(set_blocksize),
 135         X(getblk),
 136         X(bread),
 137         X(breada),
 138         X(brelse),
 139         X(ll_rw_block),
 140         X(__wait_on_buffer),
 141         X(dcache_lookup),
 142         X(dcache_add),
 143 
 144         /* device registration */
 145         X(register_chrdev),
 146         X(unregister_chrdev),
 147         X(register_blkdev),
 148         X(unregister_blkdev),
 149         X(tty_register_driver),
 150         X(tty_unregister_driver),
 151         X(tty_std_termios),
 152 
 153         /* block device driver support */
 154         X(block_read),
 155         X(block_write),
 156         X(block_fsync),
 157         X(wait_for_request),
 158         X(blksize_size),
 159         X(hardsect_size),
 160         X(blk_size),
 161         X(blk_dev),
 162         X(is_read_only),
 163         X(set_device_ro),
 164         X(bmap),
 165         X(sync_dev),
 166         X(get_blkfops),
 167         
 168         /* Module creation of serial units */
 169         X(register_serial),
 170         X(unregister_serial),
 171 
 172         /* filesystem registration */
 173         X(register_filesystem),
 174         X(unregister_filesystem),
 175 
 176         /* executable format registration */
 177         X(register_binfmt),
 178         X(unregister_binfmt),
 179 
 180         /* execution environment registration */
 181         X(lookup_exec_domain),
 182         X(register_exec_domain),
 183         X(unregister_exec_domain),
 184 
 185         /* interrupt handling */
 186         X(request_irq),
 187         X(free_irq),
 188         X(enable_irq),
 189         X(disable_irq),
 190         X(bh_active),
 191         X(bh_mask),
 192         X(add_timer),
 193         X(del_timer),
 194         X(tq_timer),
 195         X(tq_immediate),
 196         X(tq_last),
 197         X(timer_active),
 198         X(timer_table),
 199 
 200         /* dma handling */
 201         X(request_dma),
 202         X(free_dma),
 203 
 204         /* IO port handling */
 205         X(check_region),
 206         X(request_region),
 207         X(release_region),
 208 
 209         /* process management */
 210         X(wake_up),
 211         X(wake_up_interruptible),
 212         X(sleep_on),
 213         X(interruptible_sleep_on),
 214         X(schedule),
 215         X(current),
 216         X(jiffies),
 217         X(xtime),
 218         X(loops_per_sec),
 219         X(need_resched),
 220         X(kill_proc),
 221         X(kill_pg),
 222         X(kill_sl),
 223 
 224         /* misc */
 225         X(panic),
 226         X(printk),
 227         X(sprintf),
 228         X(vsprintf),
 229         X(simple_strtoul),
 230         X(system_utsname),
 231         X(sys_call_table),
 232 
 233         /* Signal interfaces */
 234         X(do_signal),
 235         X(send_sig),
 236 
 237         /* Program loader interfaces */
 238         X(setup_arg_pages),
 239         X(copy_strings),
 240         X(create_tables),
 241         X(do_execve),
 242         X(flush_old_exec),
 243         X(open_inode),
 244         X(read_exec),
 245 
 246         /* Miscellaneous access points */
 247         X(si_meminfo),
 248 
 249         /* socket layer registration */
 250         X(sock_register),
 251         X(sock_unregister),
 252 
 253 #ifdef CONFIG_FTAPE
 254         /* The next labels are needed for ftape driver.  */
 255         X(ftape_big_buffer),
 256         X(do_floppy),
 257 #endif
 258         X(floppy_track_buffer),
 259 #ifdef CONFIG_INET
 260         /* support for loadable net drivers */
 261         X(register_netdev),
 262         X(unregister_netdev),
 263         X(ether_setup),
 264         X(alloc_skb),
 265         X(kfree_skb),
 266         X(dev_kfree_skb),
 267         X(netif_rx),
 268         X(dev_rint),
 269         X(dev_tint),
 270         X(irq2dev_map),
 271         X(dev_add_pack),
 272         X(dev_remove_pack),
 273         X(dev_get),
 274         X(dev_ioctl),
 275         X(dev_queue_xmit),
 276         X(dev_base),
 277 #endif
 278 #ifdef CONFIG_SCSI
 279         /* Supports loadable scsi drivers */
 280         X(scsi_register_module),
 281         X(scsi_unregister_module),
 282         X(scsi_free),
 283         X(scsi_malloc),
 284         X(scsi_register),
 285         X(scsi_unregister),
 286 #endif
 287         /* Added to make file system as module */
 288         X(set_writetime),
 289         X(sys_tz),
 290         X(__wait_on_super),
 291         X(file_fsync),
 292         X(clear_inode),
 293         X(refile_buffer),
 294         X(___strtok),
 295         X(init_fifo),
 296         X(super_blocks),
 297         X(chrdev_inode_operations),
 298         X(blkdev_inode_operations),
 299         X(read_ahead),
 300         X(get_hash_table),
 301         X(get_empty_inode),
 302         X(insert_inode_hash),
 303         X(event),
 304         X(__down),
 305 #if defined(CONFIG_MSDOS_FS) && !defined(CONFIG_UMSDOS_FS)
 306         /* support for umsdos fs */
 307         X(msdos_bmap),
 308         X(msdos_create),
 309         X(msdos_file_read),
 310         X(msdos_file_write),
 311         X(msdos_lookup),
 312         X(msdos_mkdir),
 313         X(msdos_mmap),
 314         X(msdos_put_inode),
 315         X(msdos_put_super),
 316         X(msdos_read_inode),
 317         X(msdos_read_super),
 318         X(msdos_readdir),
 319         X(msdos_rename),
 320         X(msdos_rmdir),
 321         X(msdos_smap),
 322         X(msdos_statfs),
 323         X(msdos_truncate),
 324         X(msdos_unlink),
 325         X(msdos_unlink_umsdos),
 326         X(msdos_write_inode),
 327 #endif
 328         /********************************************************
 329          * Do not add anything below this line,
 330          * as the stacked modules depend on this!
 331          */
 332         { NULL, NULL } /* mark end of table */
 333         },
 334         { { NULL, NULL } /* no module refs */ }
 335 };
 336 
 337 /*
 338 int symbol_table_size = sizeof (symbol_table) / sizeof (symbol_table[0]);
 339 */

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