Merge with Linux 2.4.0-test3-pre2.
[linux-2.6/linux-mips.git] / kernel / ksyms.c
blob2189d87a463087a043dc554e5b8de039e0a470db
1 /*
2 * Herein lies all the functions/variables that are "exported" for linkage
3 * with dynamically loaded kernel modules.
4 * Jon.
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>
12 #include <linux/config.h>
13 #include <linux/malloc.h>
14 #include <linux/module.h>
15 #include <linux/blkdev.h>
16 #include <linux/cdrom.h>
17 #include <linux/kernel_stat.h>
18 #include <linux/vmalloc.h>
19 #include <linux/sys.h>
20 #include <linux/utsname.h>
21 #include <linux/interrupt.h>
22 #include <linux/ioport.h>
23 #include <linux/serial.h>
24 #include <linux/locks.h>
25 #include <linux/delay.h>
26 #include <linux/minix_fs.h>
27 #include <linux/ext2_fs.h>
28 #include <linux/random.h>
29 #include <linux/reboot.h>
30 #include <linux/pagemap.h>
31 #include <linux/sysctl.h>
32 #include <linux/hdreg.h>
33 #include <linux/skbuff.h>
34 #include <linux/genhd.h>
35 #include <linux/blkpg.h>
36 #include <linux/swap.h>
37 #include <linux/ctype.h>
38 #include <linux/file.h>
39 #include <linux/iobuf.h>
40 #include <linux/console.h>
41 #include <linux/poll.h>
42 #include <linux/mmzone.h>
43 #include <linux/mm.h>
44 #include <linux/capability.h>
45 #include <linux/highuid.h>
46 #include <linux/brlock.h>
47 #include <linux/fs.h>
49 #if defined(CONFIG_PROC_FS)
50 #include <linux/proc_fs.h>
51 #endif
52 #ifdef CONFIG_KMOD
53 #include <linux/kmod.h>
54 #endif
56 extern int console_loglevel;
57 extern void set_device_ro(kdev_t dev,int flag);
58 #if !defined(CONFIG_NFSD) && defined(CONFIG_NFSD_MODULE)
59 extern int (*do_nfsservctl)(int, void *, void *);
60 #endif
62 extern void *sys_call_table;
64 extern int sys_tz;
65 extern int request_dma(unsigned int dmanr, char * deviceID);
66 extern void free_dma(unsigned int dmanr);
67 extern spinlock_t dma_spin_lock;
69 #ifdef CONFIG_MODVERSIONS
70 const struct module_symbol __export_Using_Versions
71 __attribute__((section("__ksymtab"))) = {
72 1 /* Version version */, "Using_Versions"
74 #endif
77 #ifdef CONFIG_KMOD
78 EXPORT_SYMBOL(request_module);
79 EXPORT_SYMBOL(exec_usermodehelper);
80 #endif
82 #ifdef CONFIG_MODULES
83 EXPORT_SYMBOL(get_module_symbol);
84 EXPORT_SYMBOL(put_module_symbol);
85 EXPORT_SYMBOL(try_inc_mod_count);
86 #endif
88 /* process memory management */
89 EXPORT_SYMBOL(do_mmap_pgoff);
90 EXPORT_SYMBOL(do_munmap);
91 EXPORT_SYMBOL(do_brk);
92 EXPORT_SYMBOL(exit_mm);
93 EXPORT_SYMBOL(exit_files);
94 EXPORT_SYMBOL(exit_fs);
95 EXPORT_SYMBOL(exit_sighand);
97 /* internal kernel memory management */
98 EXPORT_SYMBOL(__alloc_pages);
99 EXPORT_SYMBOL(alloc_pages_node);
100 EXPORT_SYMBOL(__free_pages_ok);
101 #ifndef CONFIG_DISCONTIGMEM
102 EXPORT_SYMBOL(contig_page_data);
103 #endif
104 EXPORT_SYMBOL(num_physpages);
105 EXPORT_SYMBOL(kmem_find_general_cachep);
106 EXPORT_SYMBOL(kmem_cache_create);
107 EXPORT_SYMBOL(kmem_cache_destroy);
108 EXPORT_SYMBOL(kmem_cache_shrink);
109 EXPORT_SYMBOL(kmem_cache_alloc);
110 EXPORT_SYMBOL(kmem_cache_free);
111 EXPORT_SYMBOL(kmalloc);
112 EXPORT_SYMBOL(kfree);
113 EXPORT_SYMBOL(kfree_s);
114 EXPORT_SYMBOL(vfree);
115 EXPORT_SYMBOL(__vmalloc);
116 EXPORT_SYMBOL(mem_map);
117 EXPORT_SYMBOL(remap_page_range);
118 EXPORT_SYMBOL(max_mapnr);
119 EXPORT_SYMBOL(high_memory);
120 EXPORT_SYMBOL(vmtruncate);
121 EXPORT_SYMBOL(find_vma);
122 EXPORT_SYMBOL(get_unmapped_area);
123 EXPORT_SYMBOL(init_mm);
124 #ifdef CONFIG_HIGHMEM
125 EXPORT_SYMBOL(kmap_high);
126 EXPORT_SYMBOL(kunmap_high);
127 EXPORT_SYMBOL(highmem_start_page);
128 #endif
130 /* filesystem internal functions */
131 EXPORT_SYMBOL(def_blk_fops);
132 EXPORT_SYMBOL(update_atime);
133 EXPORT_SYMBOL(get_fs_type);
134 EXPORT_SYMBOL(get_super);
135 EXPORT_SYMBOL(get_empty_super);
136 EXPORT_SYMBOL(getname);
137 EXPORT_SYMBOL(_fput);
138 EXPORT_SYMBOL(igrab);
139 EXPORT_SYMBOL(iunique);
140 EXPORT_SYMBOL(iget4);
141 EXPORT_SYMBOL(iput);
142 EXPORT_SYMBOL(force_delete);
143 EXPORT_SYMBOL(follow_up);
144 EXPORT_SYMBOL(follow_down);
145 EXPORT_SYMBOL(path_init);
146 EXPORT_SYMBOL(path_walk);
147 EXPORT_SYMBOL(path_release);
148 EXPORT_SYMBOL(__user_walk);
149 EXPORT_SYMBOL(lookup_one);
150 EXPORT_SYMBOL(lookup_hash);
151 EXPORT_SYMBOL(sys_close);
152 EXPORT_SYMBOL(d_alloc_root);
153 EXPORT_SYMBOL(d_delete);
154 EXPORT_SYMBOL(d_validate);
155 EXPORT_SYMBOL(d_rehash);
156 EXPORT_SYMBOL(d_invalidate); /* May be it will be better in dcache.h? */
157 EXPORT_SYMBOL(d_move);
158 EXPORT_SYMBOL(d_instantiate);
159 EXPORT_SYMBOL(d_alloc);
160 EXPORT_SYMBOL(d_lookup);
161 EXPORT_SYMBOL(__d_path);
162 EXPORT_SYMBOL(mark_buffer_dirty);
163 EXPORT_SYMBOL(__mark_buffer_dirty);
164 EXPORT_SYMBOL(__mark_inode_dirty);
165 EXPORT_SYMBOL(get_empty_filp);
166 EXPORT_SYMBOL(init_private_file);
167 EXPORT_SYMBOL(filp_open);
168 EXPORT_SYMBOL(filp_close);
169 EXPORT_SYMBOL(put_filp);
170 EXPORT_SYMBOL(files_lock);
171 EXPORT_SYMBOL(check_disk_change);
172 EXPORT_SYMBOL(__invalidate_buffers);
173 EXPORT_SYMBOL(invalidate_inodes);
174 EXPORT_SYMBOL(invalidate_inode_pages);
175 EXPORT_SYMBOL(truncate_inode_pages);
176 EXPORT_SYMBOL(fsync_dev);
177 EXPORT_SYMBOL(permission);
178 EXPORT_SYMBOL(inode_setattr);
179 EXPORT_SYMBOL(inode_change_ok);
180 EXPORT_SYMBOL(write_inode_now);
181 EXPORT_SYMBOL(notify_change);
182 EXPORT_SYMBOL(get_hardblocksize);
183 EXPORT_SYMBOL(set_blocksize);
184 EXPORT_SYMBOL(getblk);
185 EXPORT_SYMBOL(bdget);
186 EXPORT_SYMBOL(bdput);
187 EXPORT_SYMBOL(bread);
188 EXPORT_SYMBOL(breada);
189 EXPORT_SYMBOL(__brelse);
190 EXPORT_SYMBOL(__bforget);
191 EXPORT_SYMBOL(ll_rw_block);
192 EXPORT_SYMBOL(__wait_on_buffer);
193 EXPORT_SYMBOL(___wait_on_page);
194 EXPORT_SYMBOL(block_write_full_page);
195 EXPORT_SYMBOL(block_read_full_page);
196 EXPORT_SYMBOL(block_prepare_write);
197 EXPORT_SYMBOL(block_sync_page);
198 EXPORT_SYMBOL(cont_prepare_write);
199 EXPORT_SYMBOL(generic_commit_write);
200 EXPORT_SYMBOL(generic_block_bmap);
201 EXPORT_SYMBOL(generic_file_read);
202 EXPORT_SYMBOL(do_generic_file_read);
203 EXPORT_SYMBOL(generic_file_write);
204 EXPORT_SYMBOL(generic_file_mmap);
205 EXPORT_SYMBOL(generic_ro_fops);
206 EXPORT_SYMBOL(generic_buffer_fdatasync);
207 EXPORT_SYMBOL(page_hash_bits);
208 EXPORT_SYMBOL(page_hash_table);
209 EXPORT_SYMBOL(file_lock_list);
210 EXPORT_SYMBOL(posix_lock_file);
211 EXPORT_SYMBOL(posix_test_lock);
212 EXPORT_SYMBOL(posix_block_lock);
213 EXPORT_SYMBOL(posix_unblock_lock);
214 EXPORT_SYMBOL(locks_mandatory_area);
215 EXPORT_SYMBOL(dput);
216 EXPORT_SYMBOL(have_submounts);
217 EXPORT_SYMBOL(d_find_alias);
218 EXPORT_SYMBOL(d_prune_aliases);
219 EXPORT_SYMBOL(prune_dcache);
220 EXPORT_SYMBOL(shrink_dcache_sb);
221 EXPORT_SYMBOL(shrink_dcache_parent);
222 EXPORT_SYMBOL(find_inode_number);
223 EXPORT_SYMBOL(is_subdir);
224 EXPORT_SYMBOL(get_unused_fd);
225 EXPORT_SYMBOL(vfs_create);
226 EXPORT_SYMBOL(vfs_mkdir);
227 EXPORT_SYMBOL(vfs_mknod);
228 EXPORT_SYMBOL(vfs_symlink);
229 EXPORT_SYMBOL(vfs_link);
230 EXPORT_SYMBOL(vfs_rmdir);
231 EXPORT_SYMBOL(vfs_unlink);
232 EXPORT_SYMBOL(vfs_rename);
233 EXPORT_SYMBOL(vfs_statfs);
234 EXPORT_SYMBOL(generic_read_dir);
235 EXPORT_SYMBOL(__pollwait);
236 EXPORT_SYMBOL(ROOT_DEV);
237 EXPORT_SYMBOL(__find_get_page);
238 EXPORT_SYMBOL(__find_lock_page);
239 EXPORT_SYMBOL(grab_cache_page);
240 EXPORT_SYMBOL(read_cache_page);
241 EXPORT_SYMBOL(vfs_readlink);
242 EXPORT_SYMBOL(vfs_follow_link);
243 EXPORT_SYMBOL(page_readlink);
244 EXPORT_SYMBOL(page_follow_link);
245 EXPORT_SYMBOL(page_symlink_inode_operations);
246 EXPORT_SYMBOL(block_symlink);
247 EXPORT_SYMBOL(vfs_readdir);
248 EXPORT_SYMBOL(dcache_readdir);
250 /* for stackable file systems (lofs, wrapfs, cryptfs, etc.) */
251 EXPORT_SYMBOL(default_llseek);
252 EXPORT_SYMBOL(dentry_open);
253 EXPORT_SYMBOL(filemap_nopage);
254 EXPORT_SYMBOL(filemap_swapout);
255 EXPORT_SYMBOL(filemap_sync);
256 EXPORT_SYMBOL(lock_page);
258 #if !defined(CONFIG_NFSD) && defined(CONFIG_NFSD_MODULE)
259 EXPORT_SYMBOL(do_nfsservctl);
260 #endif
262 /* device registration */
263 EXPORT_SYMBOL(register_chrdev);
264 EXPORT_SYMBOL(unregister_chrdev);
265 EXPORT_SYMBOL(register_blkdev);
266 EXPORT_SYMBOL(unregister_blkdev);
267 EXPORT_SYMBOL(tty_register_driver);
268 EXPORT_SYMBOL(tty_unregister_driver);
269 EXPORT_SYMBOL(tty_std_termios);
271 /* block device driver support */
272 EXPORT_SYMBOL(block_read);
273 EXPORT_SYMBOL(block_write);
274 EXPORT_SYMBOL(blksize_size);
275 EXPORT_SYMBOL(hardsect_size);
276 EXPORT_SYMBOL(blk_size);
277 EXPORT_SYMBOL(blk_dev);
278 EXPORT_SYMBOL(is_read_only);
279 EXPORT_SYMBOL(set_device_ro);
280 EXPORT_SYMBOL(bmap);
281 EXPORT_SYMBOL(sync_dev);
282 EXPORT_SYMBOL(devfs_register_partitions);
283 EXPORT_SYMBOL(blkdev_open);
284 EXPORT_SYMBOL(blkdev_get);
285 EXPORT_SYMBOL(blkdev_put);
286 EXPORT_SYMBOL(ioctl_by_bdev);
287 EXPORT_SYMBOL(gendisk_head);
288 EXPORT_SYMBOL(grok_partitions);
289 EXPORT_SYMBOL(register_disk);
290 EXPORT_SYMBOL(tq_disk);
291 EXPORT_SYMBOL(init_buffer);
292 EXPORT_SYMBOL(refile_buffer);
293 EXPORT_SYMBOL(max_sectors);
294 EXPORT_SYMBOL(max_readahead);
295 EXPORT_SYMBOL(file_moveto);
297 /* tty routines */
298 EXPORT_SYMBOL(tty_hangup);
299 EXPORT_SYMBOL(tty_wait_until_sent);
300 EXPORT_SYMBOL(tty_check_change);
301 EXPORT_SYMBOL(tty_hung_up_p);
302 EXPORT_SYMBOL(tty_flip_buffer_push);
303 EXPORT_SYMBOL(tty_get_baud_rate);
304 EXPORT_SYMBOL(do_SAK);
305 EXPORT_SYMBOL(console_print);
306 EXPORT_SYMBOL(console_loglevel);
308 /* filesystem registration */
309 EXPORT_SYMBOL(register_filesystem);
310 EXPORT_SYMBOL(unregister_filesystem);
311 EXPORT_SYMBOL(kern_mount);
312 EXPORT_SYMBOL(kern_umount);
313 EXPORT_SYMBOL(may_umount);
315 /* executable format registration */
316 EXPORT_SYMBOL(register_binfmt);
317 EXPORT_SYMBOL(unregister_binfmt);
318 EXPORT_SYMBOL(search_binary_handler);
319 EXPORT_SYMBOL(prepare_binprm);
320 EXPORT_SYMBOL(compute_creds);
321 EXPORT_SYMBOL(remove_arg_zero);
322 EXPORT_SYMBOL(set_binfmt);
324 /* execution environment registration */
325 EXPORT_SYMBOL(register_exec_domain);
326 EXPORT_SYMBOL(unregister_exec_domain);
327 EXPORT_SYMBOL(__set_personality);
329 /* sysctl table registration */
330 EXPORT_SYMBOL(register_sysctl_table);
331 EXPORT_SYMBOL(unregister_sysctl_table);
332 EXPORT_SYMBOL(sysctl_string);
333 EXPORT_SYMBOL(sysctl_intvec);
334 EXPORT_SYMBOL(proc_dostring);
335 EXPORT_SYMBOL(proc_dointvec);
336 EXPORT_SYMBOL(proc_dointvec_jiffies);
337 EXPORT_SYMBOL(proc_dointvec_minmax);
338 EXPORT_SYMBOL(proc_doulongvec_ms_jiffies_minmax);
339 EXPORT_SYMBOL(proc_doulongvec_minmax);
341 /* interrupt handling */
342 EXPORT_SYMBOL(add_timer);
343 EXPORT_SYMBOL(del_timer);
344 EXPORT_SYMBOL(request_irq);
345 EXPORT_SYMBOL(free_irq);
347 /* The notion of irq probe/assignment is foreign to S/390 */
349 #if !defined(CONFIG_ARCH_S390)
350 EXPORT_SYMBOL(probe_irq_on);
351 EXPORT_SYMBOL(probe_irq_off);
352 EXPORT_SYMBOL(autoirq_setup);
353 EXPORT_SYMBOL(autoirq_report);
354 #endif
356 #ifdef CONFIG_SMP
357 EXPORT_SYMBOL(del_timer_sync);
358 #endif
359 EXPORT_SYMBOL(mod_timer);
360 EXPORT_SYMBOL(tq_timer);
361 EXPORT_SYMBOL(tq_immediate);
362 EXPORT_SYMBOL(tq_scheduler);
363 EXPORT_SYMBOL(timer_active);
364 EXPORT_SYMBOL(timer_table);
366 #ifdef CONFIG_SMP
367 /* Various random spinlocks we want to export */
368 EXPORT_SYMBOL(tqueue_lock);
370 /* Big-Reader lock implementation */
371 EXPORT_SYMBOL(__brlock_array);
372 #ifndef __BRLOCK_USE_ATOMICS
373 EXPORT_SYMBOL(__br_write_locks);
374 #endif
375 EXPORT_SYMBOL(__br_write_lock);
376 EXPORT_SYMBOL(__br_write_unlock);
377 #endif
379 /* Kiobufs */
380 EXPORT_SYMBOL(kiobuf_init);
382 EXPORT_SYMBOL(alloc_kiovec);
383 EXPORT_SYMBOL(free_kiovec);
384 EXPORT_SYMBOL(expand_kiobuf);
386 EXPORT_SYMBOL(map_user_kiobuf);
387 EXPORT_SYMBOL(unmap_kiobuf);
388 EXPORT_SYMBOL(lock_kiovec);
389 EXPORT_SYMBOL(unlock_kiovec);
390 EXPORT_SYMBOL(brw_kiovec);
392 /* dma handling */
393 EXPORT_SYMBOL(request_dma);
394 EXPORT_SYMBOL(free_dma);
395 EXPORT_SYMBOL(dma_spin_lock);
396 #ifdef HAVE_DISABLE_HLT
397 EXPORT_SYMBOL(disable_hlt);
398 EXPORT_SYMBOL(enable_hlt);
399 #endif
401 /* resource handling */
402 EXPORT_SYMBOL(request_resource);
403 EXPORT_SYMBOL(release_resource);
404 EXPORT_SYMBOL(allocate_resource);
405 EXPORT_SYMBOL(check_resource);
406 EXPORT_SYMBOL(__request_region);
407 EXPORT_SYMBOL(__check_region);
408 EXPORT_SYMBOL(__release_region);
409 EXPORT_SYMBOL(ioport_resource);
410 EXPORT_SYMBOL(iomem_resource);
412 /* process management */
413 EXPORT_SYMBOL(__wake_up);
414 EXPORT_SYMBOL(wake_up_process);
415 EXPORT_SYMBOL(sleep_on);
416 EXPORT_SYMBOL(sleep_on_timeout);
417 EXPORT_SYMBOL(interruptible_sleep_on);
418 EXPORT_SYMBOL(interruptible_sleep_on_timeout);
419 EXPORT_SYMBOL(schedule);
420 EXPORT_SYMBOL(schedule_timeout);
421 EXPORT_SYMBOL(jiffies);
422 EXPORT_SYMBOL(xtime);
423 EXPORT_SYMBOL(do_gettimeofday);
424 EXPORT_SYMBOL(do_settimeofday);
425 #ifndef __ia64__
426 EXPORT_SYMBOL(loops_per_sec);
427 #endif
428 EXPORT_SYMBOL(kstat);
429 EXPORT_SYMBOL(nr_running);
431 /* misc */
432 EXPORT_SYMBOL(panic);
433 EXPORT_SYMBOL(printk);
434 EXPORT_SYMBOL(sprintf);
435 EXPORT_SYMBOL(vsprintf);
436 EXPORT_SYMBOL(kdevname);
437 EXPORT_SYMBOL(bdevname);
438 EXPORT_SYMBOL(cdevname);
439 EXPORT_SYMBOL(simple_strtoul);
440 EXPORT_SYMBOL(system_utsname); /* UTS data */
441 EXPORT_SYMBOL(uts_sem); /* UTS semaphore */
442 #ifndef __mips__
443 EXPORT_SYMBOL(sys_call_table);
444 #endif
445 EXPORT_SYMBOL(machine_restart);
446 EXPORT_SYMBOL(machine_halt);
447 EXPORT_SYMBOL(machine_power_off);
448 EXPORT_SYMBOL(_ctype);
449 EXPORT_SYMBOL(secure_tcp_sequence_number);
450 EXPORT_SYMBOL(get_random_bytes);
451 EXPORT_SYMBOL(securebits);
452 EXPORT_SYMBOL(cap_bset);
453 EXPORT_SYMBOL(daemonize);
455 /* Program loader interfaces */
456 EXPORT_SYMBOL(setup_arg_pages);
457 EXPORT_SYMBOL(copy_strings_kernel);
458 EXPORT_SYMBOL(do_execve);
459 EXPORT_SYMBOL(flush_old_exec);
460 EXPORT_SYMBOL(kernel_read);
461 EXPORT_SYMBOL(open_exec);
463 /* Miscellaneous access points */
464 EXPORT_SYMBOL(si_meminfo);
466 /* Added to make file system as module */
467 EXPORT_SYMBOL(sys_tz);
468 EXPORT_SYMBOL(__wait_on_super);
469 EXPORT_SYMBOL(file_fsync);
470 EXPORT_SYMBOL(clear_inode);
471 EXPORT_SYMBOL(nr_async_pages);
472 EXPORT_SYMBOL(___strtok);
473 EXPORT_SYMBOL(init_special_inode);
474 EXPORT_SYMBOL(read_ahead);
475 EXPORT_SYMBOL(get_hash_table);
476 EXPORT_SYMBOL(get_empty_inode);
477 EXPORT_SYMBOL(insert_inode_hash);
478 EXPORT_SYMBOL(remove_inode_hash);
479 EXPORT_SYMBOL(make_bad_inode);
480 EXPORT_SYMBOL(is_bad_inode);
481 EXPORT_SYMBOL(event);
482 EXPORT_SYMBOL(__down);
483 EXPORT_SYMBOL(__down_interruptible);
484 EXPORT_SYMBOL(__down_trylock);
485 EXPORT_SYMBOL(__up);
486 EXPORT_SYMBOL(brw_page);
488 #ifdef CONFIG_UID16
489 EXPORT_SYMBOL(overflowuid);
490 EXPORT_SYMBOL(overflowgid);
491 #endif
492 EXPORT_SYMBOL(fs_overflowuid);
493 EXPORT_SYMBOL(fs_overflowgid);
495 /* all busmice */
496 EXPORT_SYMBOL(fasync_helper);
497 EXPORT_SYMBOL(kill_fasync);
499 #ifdef CONFIG_BLK_DEV_MD
500 EXPORT_SYMBOL(disk_name); /* for md.c */
501 #endif
503 /* binfmt_aout */
504 EXPORT_SYMBOL(get_write_access);
506 /* dynamic registering of consoles */
507 EXPORT_SYMBOL(register_console);
508 EXPORT_SYMBOL(unregister_console);
510 /* time */
511 EXPORT_SYMBOL(get_fast_time);
513 /* library functions */
514 EXPORT_SYMBOL(strnicmp);
515 EXPORT_SYMBOL(strspn);
517 /* software interrupts */
518 EXPORT_SYMBOL(tasklet_hi_vec);
519 EXPORT_SYMBOL(tasklet_vec);
520 EXPORT_SYMBOL(bh_task_vec);
521 EXPORT_SYMBOL(init_bh);
522 EXPORT_SYMBOL(remove_bh);
523 EXPORT_SYMBOL(tasklet_init);
524 EXPORT_SYMBOL(tasklet_kill);
526 /* init task, for moving kthread roots - ought to export a function ?? */
528 EXPORT_SYMBOL(init_task_union);
530 EXPORT_SYMBOL(tasklist_lock);
531 EXPORT_SYMBOL(pidhash);