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         X(exit_mm),
 124 
 125         /* internal kernel memory management */
 126         X(__get_free_pages),
 127         X(free_pages),
 128         X(kmalloc),
 129         X(kfree),
 130         X(vmalloc),
 131         X(vremap),
 132         X(vfree),
 133         X(mem_map),
 134         X(remap_page_range),
 135         X(high_memory),
 136         X(update_vm_cache),
 137 
 138         /* filesystem internal functions */
 139         X(getname),
 140         X(putname),
 141         X(__iget),
 142         X(iput),
 143         X(namei),
 144         X(lnamei),
 145         X(open_namei),
 146         X(sys_close),
 147         X(close_fp),
 148         X(check_disk_change),
 149         X(invalidate_buffers),
 150         X(invalidate_inodes),
 151         X(invalidate_inode_pages),
 152         X(fsync_dev),
 153         X(permission),
 154         X(inode_setattr),
 155         X(inode_change_ok),
 156         X(set_blocksize),
 157         X(getblk),
 158         X(bread),
 159         X(breada),
 160         X(__brelse),
 161         X(__bforget),
 162         X(ll_rw_block),
 163         X(__wait_on_buffer),
 164         X(__wait_on_page),
 165         X(mark_buffer_uptodate),
 166         X(unlock_buffer),
 167         X(dcache_lookup),
 168         X(dcache_add),
 169         X(add_blkdev_randomness),
 170         X(generic_file_read),
 171         X(generic_file_mmap),
 172         X(generic_readpage),
 173 
 174         /* device registration */
 175         X(register_chrdev),
 176         X(unregister_chrdev),
 177         X(register_blkdev),
 178         X(unregister_blkdev),
 179         X(tty_register_driver),
 180         X(tty_unregister_driver),
 181         X(tty_std_termios),
 182 
 183         /* block device driver support */
 184         X(block_read),
 185         X(block_write),
 186         X(block_fsync),
 187         X(wait_for_request),
 188         X(blksize_size),
 189         X(hardsect_size),
 190         X(blk_size),
 191         X(blk_dev),
 192         X(is_read_only),
 193         X(set_device_ro),
 194         X(bmap),
 195         X(sync_dev),
 196         X(get_blkfops),
 197         X(blkdev_open),
 198         X(blkdev_release),
 199 #ifdef CONFIG_SERIAL    
 200         /* Module creation of serial units */
 201         X(register_serial),
 202         X(unregister_serial),
 203 #endif
 204         /* tty routines */
 205         X(tty_hangup),
 206         X(tty_wait_until_sent),
 207         X(tty_check_change),
 208         X(tty_hung_up_p),
 209         X(do_SAK),
 210         X(console_print),
 211 
 212         /* filesystem registration */
 213         X(register_filesystem),
 214         X(unregister_filesystem),
 215 
 216         /* executable format registration */
 217         X(register_binfmt),
 218         X(unregister_binfmt),
 219         X(search_binary_handler),
 220         X(prepare_binprm),
 221         X(remove_arg_zero),
 222 
 223         /* execution environment registration */
 224         X(lookup_exec_domain),
 225         X(register_exec_domain),
 226         X(unregister_exec_domain),
 227 
 228         /* sysctl table registration */
 229         X(register_sysctl_table),
 230         X(unregister_sysctl_table),
 231 
 232         /* interrupt handling */
 233         X(request_irq),
 234         X(free_irq),
 235         X(enable_irq),
 236         X(disable_irq),
 237         X(probe_irq_on),
 238         X(probe_irq_off),
 239         X(bh_active),
 240         X(bh_mask),
 241         X(bh_mask_count),
 242         X(bh_base),
 243         X(add_timer),
 244         X(del_timer),
 245         X(tq_timer),
 246         X(tq_immediate),
 247         X(tq_scheduler),
 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         /* binfmt_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] */