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 (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/module.h>
  13 #include <linux/config.h>
  14 #include <linux/kernel.h>
  15 #include <linux/smp.h>
  16 #include <linux/fs.h>
  17 #include <linux/blkdev.h>
  18 #include <linux/sched.h>
  19 #include <linux/kernel_stat.h>
  20 #include <linux/mm.h>
  21 #include <linux/malloc.h>
  22 #include <linux/ptrace.h>
  23 #include <linux/sys.h>
  24 #include <linux/utsname.h>
  25 #include <linux/interrupt.h>
  26 #include <linux/ioport.h>
  27 #include <linux/timer.h>
  28 #include <linux/binfmts.h>
  29 #include <linux/personality.h>
  30 #include <linux/termios.h>
  31 #include <linux/tqueue.h>
  32 #include <linux/tty.h>
  33 #include <linux/serial.h>
  34 #include <linux/locks.h>
  35 #include <linux/string.h>
  36 #include <linux/delay.h>
  37 #include <linux/sem.h>
  38 #include <linux/minix_fs.h>
  39 #include <linux/ext2_fs.h>
  40 #include <linux/random.h>
  41 #include <linux/mount.h>
  42 #include <linux/pagemap.h>
  43 #include <linux/sysctl.h>
  44 #include <linux/hdreg.h>
  45 #include <linux/skbuff.h>
  46 #include <linux/genhd.h>
  47 #include <linux/swap.h>
  48 
  49 extern unsigned char aux_device_present, kbd_read_mask;
  50 
  51 #ifdef CONFIG_PCI
  52 #include <linux/bios32.h>
  53 #include <linux/pci.h>
  54 #endif
  55 #if defined(CONFIG_PROC_FS)
  56 #include <linux/proc_fs.h>
  57 #endif
  58 #ifdef CONFIG_KERNELD
  59 #include <linux/kerneld.h>
  60 #endif
  61 #include <asm/irq.h>
  62 #ifdef __SMP__
  63 #include <linux/smp.h>
  64 #endif
  65 
  66 extern char *get_options(char *str, int *ints);
  67 extern void set_device_ro(int dev,int flag);
  68 extern struct file_operations * get_blkfops(unsigned int);
  69 extern void blkdev_release(struct inode * inode);
  70 
  71 extern void *sys_call_table;
  72 
  73 extern int sys_tz;
  74 extern int request_dma(unsigned int dmanr, char * deviceID);
  75 extern void free_dma(unsigned int dmanr);
  76 
  77 struct symbol_table symbol_table = {
  78 #include <linux/symtab_begin.h>
  79 #ifdef MODVERSIONS
  80         { (void *)1 /* Version version :-) */,
  81                 SYMBOL_NAME_STR (Using_Versions) },
  82 #endif
  83 
  84         /* stackable module support */
  85         X(register_symtab),
  86 #ifdef CONFIG_KERNELD
  87         X(kerneld_send),
  88 #endif
  89         X(get_options),
  90 
  91         /* system info variables */
  92         /* These check that they aren't defines (0/1) */
  93 #ifndef EISA_bus__is_a_macro
  94         X(EISA_bus),
  95 #endif
  96 #ifndef MCA_bus__is_a_macro
  97         X(MCA_bus),
  98 #endif
  99 #ifndef wp_works_ok__is_a_macro
 100         X(wp_works_ok),
 101 #endif
 102 
 103 #ifdef CONFIG_PCI
 104         /* PCI BIOS support */
 105         X(pcibios_present),
 106         X(pcibios_find_class),
 107         X(pcibios_find_device),
 108         X(pcibios_read_config_byte),
 109         X(pcibios_read_config_word),
 110         X(pcibios_read_config_dword),
 111         X(pcibios_strerror),
 112         X(pcibios_write_config_byte),
 113         X(pcibios_write_config_word),
 114         X(pcibios_write_config_dword),
 115 #endif
 116 
 117         /* process memory management */
 118         X(verify_area),
 119         X(do_mmap),
 120         X(do_munmap),
 121         X(insert_vm_struct),
 122         X(merge_segments),
 123 
 124         /* internal kernel memory management */
 125         X(__get_free_pages),
 126         X(free_pages),
 127         X(kmalloc),
 128         X(kfree),
 129         X(vmalloc),
 130         X(vremap),
 131         X(vfree),
 132         X(mem_map),
 133         X(remap_page_range),
 134         X(high_memory),
 135         X(update_vm_cache),
 136 
 137         /* filesystem internal functions */
 138         X(getname),
 139         X(putname),
 140         X(__iget),
 141         X(iput),
 142         X(namei),
 143         X(lnamei),
 144         X(open_namei),
 145         X(sys_close),
 146         X(close_fp),
 147         X(check_disk_change),
 148         X(invalidate_buffers),
 149         X(invalidate_inodes),
 150         X(invalidate_inode_pages),
 151         X(fsync_dev),
 152         X(permission),
 153         X(inode_setattr),
 154         X(inode_change_ok),
 155         X(set_blocksize),
 156         X(getblk),
 157         X(bread),
 158         X(breada),
 159         X(__brelse),
 160         X(__bforget),
 161         X(ll_rw_block),
 162         X(__wait_on_buffer),
 163         X(__wait_on_page),
 164         X(mark_buffer_uptodate),
 165         X(unlock_buffer),
 166         X(dcache_lookup),
 167         X(dcache_add),
 168         X(add_blkdev_randomness),
 169         X(generic_file_read),
 170         X(generic_file_mmap),
 171         X(generic_readpage),
 172 
 173         /* device registration */
 174         X(register_chrdev),
 175         X(unregister_chrdev),
 176         X(register_blkdev),
 177         X(unregister_blkdev),
 178         X(tty_register_driver),
 179         X(tty_unregister_driver),
 180         X(tty_std_termios),
 181 
 182         /* block device driver support */
 183         X(block_read),
 184         X(block_write),
 185         X(block_fsync),
 186         X(wait_for_request),
 187         X(blksize_size),
 188         X(hardsect_size),
 189         X(blk_size),
 190         X(blk_dev),
 191         X(is_read_only),
 192         X(set_device_ro),
 193         X(bmap),
 194         X(sync_dev),
 195         X(get_blkfops),
 196         X(blkdev_open),
 197         X(blkdev_release),
 198 #ifdef CONFIG_SERIAL    
 199         /* Module creation of serial units */
 200         X(register_serial),
 201         X(unregister_serial),
 202 #endif
 203         /* tty routines */
 204         X(tty_hangup),
 205         X(tty_wait_until_sent),
 206         X(tty_check_change),
 207         X(tty_hung_up_p),
 208         X(do_SAK),
 209         X(console_print),
 210 
 211         /* filesystem registration */
 212         X(register_filesystem),
 213         X(unregister_filesystem),
 214 
 215         /* executable format registration */
 216         X(register_binfmt),
 217         X(unregister_binfmt),
 218         X(search_binary_handler),
 219         X(prepare_binprm),
 220         X(remove_arg_zero),
 221 
 222         /* execution environment registration */
 223         X(lookup_exec_domain),
 224         X(register_exec_domain),
 225         X(unregister_exec_domain),
 226 
 227         /* sysctl table registration */
 228         X(register_sysctl_table),
 229         X(unregister_sysctl_table),
 230 
 231         /* interrupt handling */
 232         X(request_irq),
 233         X(free_irq),
 234         X(enable_irq),
 235         X(disable_irq),
 236         X(probe_irq_on),
 237         X(probe_irq_off),
 238         X(bh_active),
 239         X(bh_mask),
 240         X(bh_mask_count),
 241         X(bh_base),
 242         X(add_timer),
 243         X(del_timer),
 244         X(tq_timer),
 245         X(tq_immediate),
 246         X(tq_scheduler),
 247         X(tq_last),
 248         X(timer_active),
 249         X(timer_table),
 250         X(intr_count),
 251 
 252         /* autoirq from  drivers/net/auto_irq.c */
 253         X(autoirq_setup),
 254         X(autoirq_report),
 255 
 256         /* dma handling */
 257         X(request_dma),
 258         X(free_dma),
 259 #ifdef HAVE_DISABLE_HLT
 260         X(disable_hlt),
 261         X(enable_hlt),
 262 #endif
 263 
 264         /* IO port handling */
 265         X(check_region),
 266         X(request_region),
 267         X(release_region),
 268 
 269         /* process management */
 270         X(wake_up),
 271         X(wake_up_interruptible),
 272         X(sleep_on),
 273         X(interruptible_sleep_on),
 274         X(schedule),
 275         X(current_set),
 276         X(jiffies),
 277         X(xtime),
 278         X(do_gettimeofday),
 279         X(loops_per_sec),
 280         X(need_resched),
 281         X(kstat),
 282         X(kill_proc),
 283         X(kill_pg),
 284         X(kill_sl),
 285 
 286         /* misc */
 287         X(panic),
 288         X(printk),
 289         X(sprintf),
 290         X(vsprintf),
 291         X(kdevname),
 292         X(simple_strtoul),
 293         X(system_utsname),
 294         X(sys_call_table),
 295 
 296         /* Signal interfaces */
 297         X(send_sig),
 298 
 299         /* Program loader interfaces */
 300         X(setup_arg_pages),
 301         X(copy_strings),
 302         X(do_execve),
 303         X(flush_old_exec),
 304         X(open_inode),
 305         X(read_exec),
 306 
 307         /* Miscellaneous access points */
 308         X(si_meminfo),
 309 
 310 #ifndef CONFIG_SCSI
 311         /*
 312          * With no scsi configured, we still need to export a few
 313          * symbols so that scsi can be loaded later via insmod.
 314          * Don't remove this unless you are 100% sure of what you are
 315          * doing.  If you want to remove this, you don't know what
 316          * you are doing!
 317          */
 318         X(gendisk_head),
 319         X(resetup_one_dev),
 320 #endif
 321         /* Added to make file system as module */
 322         X(set_writetime),
 323         X(sys_tz),
 324         X(__wait_on_super),
 325         X(file_fsync),
 326         X(clear_inode),
 327         X(refile_buffer),
 328         X(nr_async_pages),
 329         X(___strtok),
 330         X(init_fifo),
 331         X(super_blocks),
 332         X(reuse_list),
 333         X(fifo_inode_operations),
 334         X(chrdev_inode_operations),
 335         X(blkdev_inode_operations),
 336         X(read_ahead),
 337         X(get_hash_table),
 338         X(get_empty_inode),
 339         X(insert_inode_hash),
 340         X(event),
 341         X(__down),
 342 /* all busmice */
 343         X(add_mouse_randomness),
 344         X(fasync_helper),
 345 /* psaux mouse */
 346         X(aux_device_present),
 347         X(kbd_read_mask),
 348 
 349 #ifdef CONFIG_BLK_DEV_IDE_PCMCIA
 350         X(ide_register),
 351         X(ide_unregister),
 352 #endif
 353 
 354 #ifdef CONFIG_BLK_DEV_MD
 355         X(disk_name),   /* for md.c */
 356 #endif
 357         
 358         /* bimfm_aout */
 359         X(get_write_access),
 360         X(put_write_access),
 361 
 362         /********************************************************
 363          * Do not add anything below this line,
 364          * as the stacked modules depend on this!
 365          */
 366 #include <linux/symtab_end.h>
 367 };
 368 
 369 /*
 370 int symbol_table_size = sizeof (symbol_table) / sizeof (symbol_table[0]);
 371 */

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