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(timer_active),
 248         X(timer_table),
 249         X(intr_count),
 250 
 251         /* autoirq from  drivers/net/auto_irq.c */
 252         X(autoirq_setup),
 253         X(autoirq_report),
 254 
 255         /* dma handling */
 256         X(request_dma),
 257         X(free_dma),
 258 #ifdef HAVE_DISABLE_HLT
 259         X(disable_hlt),
 260         X(enable_hlt),
 261 #endif
 262 
 263         /* IO port handling */
 264         X(check_region),
 265         X(request_region),
 266         X(release_region),
 267 
 268         /* process management */
 269         X(wake_up),
 270         X(wake_up_interruptible),
 271         X(sleep_on),
 272         X(interruptible_sleep_on),
 273         X(schedule),
 274         X(current_set),
 275         X(jiffies),
 276         X(xtime),
 277         X(do_gettimeofday),
 278         X(loops_per_sec),
 279         X(need_resched),
 280         X(kstat),
 281         X(kill_proc),
 282         X(kill_pg),
 283         X(kill_sl),
 284 
 285         /* misc */
 286         X(panic),
 287         X(printk),
 288         X(sprintf),
 289         X(vsprintf),
 290         X(kdevname),
 291         X(simple_strtoul),
 292         X(system_utsname),
 293         X(sys_call_table),
 294 
 295         /* Signal interfaces */
 296         X(send_sig),
 297 
 298         /* Program loader interfaces */
 299         X(setup_arg_pages),
 300         X(copy_strings),
 301         X(do_execve),
 302         X(flush_old_exec),
 303         X(open_inode),
 304         X(read_exec),
 305 
 306         /* Miscellaneous access points */
 307         X(si_meminfo),
 308 
 309 #ifndef CONFIG_SCSI
 310         /*
 311          * With no scsi configured, we still need to export a few
 312          * symbols so that scsi can be loaded later via insmod.
 313          * Don't remove this unless you are 100% sure of what you are
 314          * doing.  If you want to remove this, you don't know what
 315          * you are doing!
 316          */
 317         X(gendisk_head),
 318         X(resetup_one_dev),
 319 #endif
 320         /* Added to make file system as module */
 321         X(set_writetime),
 322         X(sys_tz),
 323         X(__wait_on_super),
 324         X(file_fsync),
 325         X(clear_inode),
 326         X(refile_buffer),
 327         X(nr_async_pages),
 328         X(___strtok),
 329         X(init_fifo),
 330         X(super_blocks),
 331         X(reuse_list),
 332         X(fifo_inode_operations),
 333         X(chrdev_inode_operations),
 334         X(blkdev_inode_operations),
 335         X(read_ahead),
 336         X(get_hash_table),
 337         X(get_empty_inode),
 338         X(insert_inode_hash),
 339         X(event),
 340         X(__down),
 341 /* all busmice */
 342         X(add_mouse_randomness),
 343         X(fasync_helper),
 344 /* psaux mouse */
 345         X(aux_device_present),
 346         X(kbd_read_mask),
 347 
 348 #ifdef CONFIG_BLK_DEV_IDE_PCMCIA
 349         X(ide_register),
 350         X(ide_unregister),
 351 #endif
 352 
 353 #ifdef CONFIG_BLK_DEV_MD
 354         X(disk_name),   /* for md.c */
 355 #endif
 356         
 357         /* bimfm_aout */
 358         X(get_write_access),
 359         X(put_write_access),
 360 
 361         /********************************************************
 362          * Do not add anything below this line,
 363          * as the stacked modules depend on this!
 364          */
 365 #include <linux/symtab_end.h>
 366 };
 367 
 368 /*
 369 int symbol_table_size = sizeof (symbol_table) / sizeof (symbol_table[0]);
 370 */

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