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

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