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

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