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

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