[PATCH] new helpers for /proc
[opensuse:kernel.git] / kernel / ksyms.c
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/config.h>
13 #include <linux/slab.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/delay.h>
25 #include <linux/random.h>
26 #include <linux/reboot.h>
27 #include <linux/pagemap.h>
28 #include <linux/sysctl.h>
29 #include <linux/hdreg.h>
30 #include <linux/skbuff.h>
31 #include <linux/genhd.h>
32 #include <linux/blkpg.h>
33 #include <linux/swap.h>
34 #include <linux/ctype.h>
35 #include <linux/file.h>
36 #include <linux/iobuf.h>
37 #include <linux/console.h>
38 #include <linux/poll.h>
39 #include <linux/mmzone.h>
40 #include <linux/mm.h>
41 #include <linux/capability.h>
42 #include <linux/highuid.h>
43 #include <linux/brlock.h>
44 #include <linux/fs.h>
45 #include <linux/tty.h>
46 #include <linux/in6.h>
47 #include <linux/completion.h>
48 #include <linux/seq_file.h>
49 #include <linux/binfmts.h>
50 #include <asm/checksum.h>
51
52 #if defined(CONFIG_PROC_FS)
53 #include <linux/proc_fs.h>
54 #endif
55 #ifdef CONFIG_KMOD
56 #include <linux/kmod.h>
57 #endif
58
59 extern void set_device_ro(kdev_t dev,int flag);
60
61 extern void *sys_call_table;
62
63 extern struct timezone sys_tz;
64 extern int request_dma(unsigned int dmanr, const char * deviceID);
65 extern void free_dma(unsigned int dmanr);
66 extern spinlock_t dma_spin_lock;
67
68 #ifdef CONFIG_MODVERSIONS
69 const struct module_symbol __export_Using_Versions
70 __attribute__((section("__ksymtab"))) = {
71         1 /* Version version */, "Using_Versions"
72 };
73 #endif
74
75
76 EXPORT_SYMBOL(inter_module_register);
77 EXPORT_SYMBOL(inter_module_unregister);
78 EXPORT_SYMBOL(inter_module_get);
79 EXPORT_SYMBOL(inter_module_get_request);
80 EXPORT_SYMBOL(inter_module_put);
81 EXPORT_SYMBOL(try_inc_mod_count);
82
83 /* process memory management */
84 EXPORT_SYMBOL(do_mmap_pgoff);
85 EXPORT_SYMBOL(do_munmap);
86 EXPORT_SYMBOL(do_brk);
87 EXPORT_SYMBOL(exit_mm);
88
89 /* internal kernel memory management */
90 EXPORT_SYMBOL(_alloc_pages);
91 EXPORT_SYMBOL(__alloc_pages);
92 EXPORT_SYMBOL(alloc_pages_node);
93 EXPORT_SYMBOL(__get_free_pages);
94 EXPORT_SYMBOL(get_zeroed_page);
95 EXPORT_SYMBOL(page_cache_release);
96 EXPORT_SYMBOL(__free_pages);
97 EXPORT_SYMBOL(free_pages);
98 EXPORT_SYMBOL(num_physpages);
99 EXPORT_SYMBOL(kmem_find_general_cachep);
100 EXPORT_SYMBOL(kmem_cache_create);
101 EXPORT_SYMBOL(kmem_cache_destroy);
102 EXPORT_SYMBOL(kmem_cache_shrink);
103 EXPORT_SYMBOL(kmem_cache_alloc);
104 EXPORT_SYMBOL(kmem_cache_free);
105 EXPORT_SYMBOL(kmalloc);
106 EXPORT_SYMBOL(kfree);
107 EXPORT_SYMBOL(vfree);
108 EXPORT_SYMBOL(__vmalloc);
109 EXPORT_SYMBOL(vmalloc_to_page);
110 EXPORT_SYMBOL(mem_map);
111 EXPORT_SYMBOL(remap_page_range);
112 EXPORT_SYMBOL(max_mapnr);
113 EXPORT_SYMBOL(high_memory);
114 EXPORT_SYMBOL(vmtruncate);
115 EXPORT_SYMBOL(find_vma);
116 EXPORT_SYMBOL(get_unmapped_area);
117 EXPORT_SYMBOL(init_mm);
118 EXPORT_SYMBOL(create_bounce);
119 #ifdef CONFIG_HIGHMEM
120 EXPORT_SYMBOL(kmap_high);
121 EXPORT_SYMBOL(kunmap_high);
122 EXPORT_SYMBOL(highmem_start_page);
123 EXPORT_SYMBOL(kmap_prot);
124 EXPORT_SYMBOL(kmap_pte);
125 #endif
126
127 /* filesystem internal functions */
128 EXPORT_SYMBOL(def_blk_fops);
129 EXPORT_SYMBOL(update_atime);
130 EXPORT_SYMBOL(get_fs_type);
131 EXPORT_SYMBOL(get_super);
132 EXPORT_SYMBOL(drop_super);
133 EXPORT_SYMBOL(getname);
134 EXPORT_SYMBOL(names_cachep);
135 EXPORT_SYMBOL(fput);
136 EXPORT_SYMBOL(fget);
137 EXPORT_SYMBOL(igrab);
138 EXPORT_SYMBOL(iunique);
139 EXPORT_SYMBOL(iput);
140 EXPORT_SYMBOL(inode_init_once);
141 EXPORT_SYMBOL(force_delete);
142 EXPORT_SYMBOL(follow_up);
143 EXPORT_SYMBOL(follow_down);
144 EXPORT_SYMBOL(lookup_mnt);
145 EXPORT_SYMBOL(path_lookup);
146 EXPORT_SYMBOL(path_init);
147 EXPORT_SYMBOL(path_walk);
148 EXPORT_SYMBOL(path_release);
149 EXPORT_SYMBOL(__user_walk);
150 EXPORT_SYMBOL(lookup_one_len);
151 EXPORT_SYMBOL(lookup_hash);
152 EXPORT_SYMBOL(sys_close);
153 EXPORT_SYMBOL(dcache_lock);
154 EXPORT_SYMBOL(dparent_lock);
155 EXPORT_SYMBOL(d_alloc_root);
156 EXPORT_SYMBOL(d_delete);
157 EXPORT_SYMBOL(dget_locked);
158 EXPORT_SYMBOL(d_validate);
159 EXPORT_SYMBOL(d_rehash);
160 EXPORT_SYMBOL(d_invalidate);    /* May be it will be better in dcache.h? */
161 EXPORT_SYMBOL(d_move);
162 EXPORT_SYMBOL(d_instantiate);
163 EXPORT_SYMBOL(d_alloc);
164 EXPORT_SYMBOL(d_alloc_anon);
165 EXPORT_SYMBOL(d_splice_alias);
166 EXPORT_SYMBOL(d_lookup);
167 EXPORT_SYMBOL(__d_path);
168 EXPORT_SYMBOL(mark_buffer_dirty);
169 EXPORT_SYMBOL(end_buffer_io_sync);
170 EXPORT_SYMBOL(__mark_inode_dirty);
171 EXPORT_SYMBOL(get_empty_filp);
172 EXPORT_SYMBOL(init_private_file);
173 EXPORT_SYMBOL(filp_open);
174 EXPORT_SYMBOL(filp_close);
175 EXPORT_SYMBOL(put_filp);
176 EXPORT_SYMBOL(files_lock);
177 EXPORT_SYMBOL(check_disk_change);
178 EXPORT_SYMBOL(__invalidate_buffers);
179 EXPORT_SYMBOL(invalidate_bdev);
180 EXPORT_SYMBOL(invalidate_inodes);
181 EXPORT_SYMBOL(invalidate_device);
182 EXPORT_SYMBOL(invalidate_inode_pages);
183 EXPORT_SYMBOL(truncate_inode_pages);
184 EXPORT_SYMBOL(fsync_dev);
185 EXPORT_SYMBOL(fsync_bdev);
186 EXPORT_SYMBOL(permission);
187 EXPORT_SYMBOL(vfs_permission);
188 EXPORT_SYMBOL(inode_setattr);
189 EXPORT_SYMBOL(inode_change_ok);
190 EXPORT_SYMBOL(write_inode_now);
191 EXPORT_SYMBOL(notify_change);
192 EXPORT_SYMBOL(set_blocksize);
193 EXPORT_SYMBOL(sb_set_blocksize);
194 EXPORT_SYMBOL(sb_min_blocksize);
195 EXPORT_SYMBOL(__getblk);
196 EXPORT_SYMBOL(cdget);
197 EXPORT_SYMBOL(cdput);
198 EXPORT_SYMBOL(bdget);
199 EXPORT_SYMBOL(bdput);
200 EXPORT_SYMBOL(bd_claim);
201 EXPORT_SYMBOL(bd_release);
202 EXPORT_SYMBOL(__bread);
203 EXPORT_SYMBOL(__brelse);
204 EXPORT_SYMBOL(__bforget);
205 EXPORT_SYMBOL(ll_rw_block);
206 EXPORT_SYMBOL(submit_bh);
207 EXPORT_SYMBOL(unlock_buffer);
208 EXPORT_SYMBOL(__wait_on_buffer);
209 EXPORT_SYMBOL(generic_direct_IO);
210 EXPORT_SYMBOL(block_write_full_page);
211 EXPORT_SYMBOL(block_read_full_page);
212 EXPORT_SYMBOL(block_prepare_write);
213 EXPORT_SYMBOL(block_sync_page);
214 EXPORT_SYMBOL(generic_cont_expand);
215 EXPORT_SYMBOL(cont_prepare_write);
216 EXPORT_SYMBOL(generic_commit_write);
217 EXPORT_SYMBOL(block_truncate_page);
218 EXPORT_SYMBOL(generic_block_bmap);
219 EXPORT_SYMBOL(generic_file_read);
220 EXPORT_SYMBOL(do_generic_file_read);
221 EXPORT_SYMBOL(generic_file_write);
222 EXPORT_SYMBOL(generic_file_mmap);
223 EXPORT_SYMBOL(generic_ro_fops);
224 EXPORT_SYMBOL(file_lock_list);
225 EXPORT_SYMBOL(locks_init_lock);
226 EXPORT_SYMBOL(locks_copy_lock);
227 EXPORT_SYMBOL(posix_lock_file);
228 EXPORT_SYMBOL(posix_test_lock);
229 EXPORT_SYMBOL(posix_block_lock);
230 EXPORT_SYMBOL(posix_unblock_lock);
231 EXPORT_SYMBOL(posix_locks_deadlock);
232 EXPORT_SYMBOL(locks_mandatory_area);
233 EXPORT_SYMBOL(dput);
234 EXPORT_SYMBOL(have_submounts);
235 EXPORT_SYMBOL(d_find_alias);
236 EXPORT_SYMBOL(d_prune_aliases);
237 EXPORT_SYMBOL(prune_dcache);
238 EXPORT_SYMBOL(shrink_dcache_sb);
239 EXPORT_SYMBOL(shrink_dcache_parent);
240 EXPORT_SYMBOL(shrink_dcache_anon);
241 EXPORT_SYMBOL(find_inode_number);
242 EXPORT_SYMBOL(is_subdir);
243 EXPORT_SYMBOL(get_unused_fd);
244 EXPORT_SYMBOL(vfs_read);
245 EXPORT_SYMBOL(vfs_write);
246 EXPORT_SYMBOL(vfs_create);
247 EXPORT_SYMBOL(vfs_mkdir);
248 EXPORT_SYMBOL(vfs_mknod);
249 EXPORT_SYMBOL(vfs_symlink);
250 EXPORT_SYMBOL(vfs_link);
251 EXPORT_SYMBOL(vfs_rmdir);
252 EXPORT_SYMBOL(vfs_unlink);
253 EXPORT_SYMBOL(vfs_rename);
254 EXPORT_SYMBOL(vfs_statfs);
255 EXPORT_SYMBOL(vfs_fstat);
256 EXPORT_SYMBOL(vfs_stat);
257 EXPORT_SYMBOL(vfs_lstat);
258 EXPORT_SYMBOL(lock_rename);
259 EXPORT_SYMBOL(unlock_rename);
260 EXPORT_SYMBOL(generic_read_dir);
261 EXPORT_SYMBOL(generic_fillattr);
262 EXPORT_SYMBOL(generic_file_llseek);
263 EXPORT_SYMBOL(remote_llseek);
264 EXPORT_SYMBOL(no_llseek);
265 EXPORT_SYMBOL(__pollwait);
266 EXPORT_SYMBOL(poll_freewait);
267 EXPORT_SYMBOL(ROOT_DEV);
268 EXPORT_SYMBOL(find_get_page);
269 EXPORT_SYMBOL(find_lock_page);
270 EXPORT_SYMBOL(grab_cache_page);
271 EXPORT_SYMBOL(grab_cache_page_nowait);
272 EXPORT_SYMBOL(read_cache_page);
273 EXPORT_SYMBOL(vfs_readlink);
274 EXPORT_SYMBOL(vfs_follow_link);
275 EXPORT_SYMBOL(page_readlink);
276 EXPORT_SYMBOL(page_follow_link);
277 EXPORT_SYMBOL(page_symlink_inode_operations);
278 EXPORT_SYMBOL(block_symlink);
279 EXPORT_SYMBOL(vfs_readdir);
280 EXPORT_SYMBOL(__get_lease);
281 EXPORT_SYMBOL(lease_get_mtime);
282 EXPORT_SYMBOL(lock_may_read);
283 EXPORT_SYMBOL(lock_may_write);
284 EXPORT_SYMBOL(dcache_dir_open);
285 EXPORT_SYMBOL(dcache_dir_close);
286 EXPORT_SYMBOL(dcache_dir_lseek);
287 EXPORT_SYMBOL(dcache_readdir);
288 EXPORT_SYMBOL(simple_statfs);
289 EXPORT_SYMBOL(simple_lookup);
290 EXPORT_SYMBOL(simple_dir_operations);
291 EXPORT_SYMBOL(simple_dir_inode_operations);
292 EXPORT_SYMBOL(fd_install);
293 EXPORT_SYMBOL(put_unused_fd);
294 EXPORT_SYMBOL(get_sb_bdev);
295 EXPORT_SYMBOL(kill_block_super);
296 EXPORT_SYMBOL(get_sb_nodev);
297 EXPORT_SYMBOL(get_sb_single);
298 EXPORT_SYMBOL(kill_anon_super);
299 EXPORT_SYMBOL(kill_litter_super);
300 EXPORT_SYMBOL(generic_shutdown_super);
301 EXPORT_SYMBOL(deactivate_super);
302 EXPORT_SYMBOL(sget);
303 EXPORT_SYMBOL(set_anon_super);
304
305 /* for stackable file systems (lofs, wrapfs, cryptfs, etc.) */
306 EXPORT_SYMBOL(default_llseek);
307 EXPORT_SYMBOL(dentry_open);
308 EXPORT_SYMBOL(filemap_nopage);
309 EXPORT_SYMBOL(filemap_sync);
310 EXPORT_SYMBOL(filemap_fdatawrite);
311 EXPORT_SYMBOL(filemap_fdatawait);
312 EXPORT_SYMBOL(lock_page);
313 EXPORT_SYMBOL(unlock_page);
314
315 /* device registration */
316 EXPORT_SYMBOL(register_chrdev);
317 EXPORT_SYMBOL(unregister_chrdev);
318 EXPORT_SYMBOL(register_blkdev);
319 EXPORT_SYMBOL(unregister_blkdev);
320 EXPORT_SYMBOL(tty_register_driver);
321 EXPORT_SYMBOL(tty_unregister_driver);
322 EXPORT_SYMBOL(tty_std_termios);
323
324 /* block device driver support */
325 EXPORT_SYMBOL(blk_size);
326 EXPORT_SYMBOL(blk_dev);
327 EXPORT_SYMBOL(is_read_only);
328 EXPORT_SYMBOL(set_device_ro);
329 EXPORT_SYMBOL(bmap);
330 EXPORT_SYMBOL(devfs_register_partitions);
331 EXPORT_SYMBOL(blkdev_open);
332 EXPORT_SYMBOL(blkdev_get);
333 EXPORT_SYMBOL(blkdev_put);
334 EXPORT_SYMBOL(ioctl_by_bdev);
335 EXPORT_SYMBOL(grok_partitions);
336 EXPORT_SYMBOL(register_disk);
337 EXPORT_SYMBOL(read_dev_sector);
338 EXPORT_SYMBOL(tq_disk);
339 EXPORT_SYMBOL(init_buffer);
340 EXPORT_SYMBOL(wipe_partitions);
341
342 /* tty routines */
343 EXPORT_SYMBOL(tty_hangup);
344 EXPORT_SYMBOL(tty_wait_until_sent);
345 EXPORT_SYMBOL(tty_check_change);
346 EXPORT_SYMBOL(tty_hung_up_p);
347 EXPORT_SYMBOL(tty_flip_buffer_push);
348 EXPORT_SYMBOL(tty_get_baud_rate);
349 EXPORT_SYMBOL(do_SAK);
350
351 /* filesystem registration */
352 EXPORT_SYMBOL(register_filesystem);
353 EXPORT_SYMBOL(unregister_filesystem);
354 EXPORT_SYMBOL(kern_mount);
355 EXPORT_SYMBOL(__mntput);
356 EXPORT_SYMBOL(may_umount);
357
358 /* executable format registration */
359 EXPORT_SYMBOL(register_binfmt);
360 EXPORT_SYMBOL(unregister_binfmt);
361 EXPORT_SYMBOL(search_binary_handler);
362 EXPORT_SYMBOL(prepare_binprm);
363 EXPORT_SYMBOL(compute_creds);
364 EXPORT_SYMBOL(remove_arg_zero);
365 EXPORT_SYMBOL(set_binfmt);
366
367 /* sysctl table registration */
368 EXPORT_SYMBOL(register_sysctl_table);
369 EXPORT_SYMBOL(unregister_sysctl_table);
370 EXPORT_SYMBOL(sysctl_string);
371 EXPORT_SYMBOL(sysctl_intvec);
372 EXPORT_SYMBOL(sysctl_jiffies);
373 EXPORT_SYMBOL(proc_dostring);
374 EXPORT_SYMBOL(proc_dointvec);
375 EXPORT_SYMBOL(proc_dointvec_jiffies);
376 EXPORT_SYMBOL(proc_dointvec_minmax);
377 EXPORT_SYMBOL(proc_doulongvec_ms_jiffies_minmax);
378 EXPORT_SYMBOL(proc_doulongvec_minmax);
379
380 /* interrupt handling */
381 EXPORT_SYMBOL(add_timer);
382 EXPORT_SYMBOL(del_timer);
383 EXPORT_SYMBOL(request_irq);
384 EXPORT_SYMBOL(free_irq);
385 #if !defined(CONFIG_ARCH_S390)
386 EXPORT_SYMBOL(irq_stat);        /* No separate irq_stat for s390, it is part of PSA */
387 #endif
388
389 /* waitqueue handling */
390 EXPORT_SYMBOL(add_wait_queue);
391 EXPORT_SYMBOL(add_wait_queue_exclusive);
392 EXPORT_SYMBOL(remove_wait_queue);
393
394 /* completion handling */
395 EXPORT_SYMBOL(wait_for_completion);
396 EXPORT_SYMBOL(complete);
397
398 /* The notion of irq probe/assignment is foreign to S/390 */
399
400 #if !defined(CONFIG_ARCH_S390)
401 EXPORT_SYMBOL(probe_irq_on);
402 EXPORT_SYMBOL(probe_irq_off);
403 #endif
404
405 #ifdef CONFIG_SMP
406 EXPORT_SYMBOL(del_timer_sync);
407 #endif
408 EXPORT_SYMBOL(mod_timer);
409 EXPORT_SYMBOL(tq_timer);
410 EXPORT_SYMBOL(tq_immediate);
411
412 #ifdef CONFIG_SMP
413 /* Various random spinlocks we want to export */
414 EXPORT_SYMBOL(tqueue_lock);
415
416 /* Big-Reader lock implementation */
417 EXPORT_SYMBOL(__brlock_array);
418 #ifndef __BRLOCK_USE_ATOMICS
419 EXPORT_SYMBOL(__br_write_locks);
420 #endif
421 EXPORT_SYMBOL(__br_write_lock);
422 EXPORT_SYMBOL(__br_write_unlock);
423 #endif
424
425 /* Kiobufs */
426 EXPORT_SYMBOL(alloc_kiovec);
427 EXPORT_SYMBOL(free_kiovec);
428 EXPORT_SYMBOL(expand_kiobuf);
429
430 EXPORT_SYMBOL(map_user_kiobuf);
431 EXPORT_SYMBOL(unmap_kiobuf);
432 EXPORT_SYMBOL(lock_kiovec);
433 EXPORT_SYMBOL(unlock_kiovec);
434 EXPORT_SYMBOL(brw_kiovec);
435 EXPORT_SYMBOL(kiobuf_wait_for_io);
436
437 /* dma handling */
438 EXPORT_SYMBOL(request_dma);
439 EXPORT_SYMBOL(free_dma);
440 EXPORT_SYMBOL(dma_spin_lock);
441 #ifdef HAVE_DISABLE_HLT
442 EXPORT_SYMBOL(disable_hlt);
443 EXPORT_SYMBOL(enable_hlt);
444 #endif
445
446 /* resource handling */
447 EXPORT_SYMBOL(request_resource);
448 EXPORT_SYMBOL(release_resource);
449 EXPORT_SYMBOL(allocate_resource);
450 EXPORT_SYMBOL(check_resource);
451 EXPORT_SYMBOL(__request_region);
452 EXPORT_SYMBOL(__check_region);
453 EXPORT_SYMBOL(__release_region);
454 EXPORT_SYMBOL(ioport_resource);
455 EXPORT_SYMBOL(iomem_resource);
456
457 /* process management */
458 EXPORT_SYMBOL(complete_and_exit);
459 EXPORT_SYMBOL(__wake_up);
460 EXPORT_SYMBOL(wake_up_process);
461 EXPORT_SYMBOL(sleep_on);
462 EXPORT_SYMBOL(sleep_on_timeout);
463 EXPORT_SYMBOL(interruptible_sleep_on);
464 EXPORT_SYMBOL(interruptible_sleep_on_timeout);
465 EXPORT_SYMBOL(schedule);
466 #ifdef CONFIG_PREEMPT
467 EXPORT_SYMBOL(preempt_schedule);
468 #endif
469 EXPORT_SYMBOL(schedule_timeout);
470 EXPORT_SYMBOL(sys_sched_yield);
471 EXPORT_SYMBOL(set_user_nice);
472 EXPORT_SYMBOL(task_nice);
473 EXPORT_SYMBOL_GPL(idle_cpu);
474 #if CONFIG_SMP
475 EXPORT_SYMBOL_GPL(set_cpus_allowed);
476 #endif
477 EXPORT_SYMBOL(jiffies);
478 EXPORT_SYMBOL(jiffies_64);
479 EXPORT_SYMBOL(xtime);
480 EXPORT_SYMBOL(do_gettimeofday);
481 EXPORT_SYMBOL(do_settimeofday);
482
483 #if !defined(__ia64__)
484 EXPORT_SYMBOL(loops_per_jiffy);
485 #endif
486
487 EXPORT_SYMBOL(kstat);
488 EXPORT_SYMBOL(nr_running);
489 EXPORT_SYMBOL(nr_context_switches);
490
491 /* misc */
492 EXPORT_SYMBOL(panic);
493 EXPORT_SYMBOL(sprintf);
494 EXPORT_SYMBOL(snprintf);
495 EXPORT_SYMBOL(sscanf);
496 EXPORT_SYMBOL(vsprintf);
497 EXPORT_SYMBOL(vsnprintf);
498 EXPORT_SYMBOL(vsscanf);
499 EXPORT_SYMBOL(kdevname);
500 EXPORT_SYMBOL(__bdevname);
501 EXPORT_SYMBOL(cdevname);
502 EXPORT_SYMBOL(simple_strtoul);
503 EXPORT_SYMBOL(system_utsname);  /* UTS data */
504 EXPORT_SYMBOL(uts_sem);         /* UTS semaphore */
505 #ifndef __mips__
506 EXPORT_SYMBOL(sys_call_table);
507 #endif
508 EXPORT_SYMBOL(machine_restart);
509 EXPORT_SYMBOL(machine_halt);
510 EXPORT_SYMBOL(machine_power_off);
511 EXPORT_SYMBOL(_ctype);
512 EXPORT_SYMBOL(secure_tcp_sequence_number);
513 EXPORT_SYMBOL(get_random_bytes);
514 EXPORT_SYMBOL(securebits);
515 EXPORT_SYMBOL(cap_bset);
516 EXPORT_SYMBOL(reparent_to_init);
517 EXPORT_SYMBOL(daemonize);
518 EXPORT_SYMBOL(csum_partial); /* for networking and md */
519 EXPORT_SYMBOL(seq_escape);
520 EXPORT_SYMBOL(seq_printf);
521 EXPORT_SYMBOL(seq_open);
522 EXPORT_SYMBOL(seq_release);
523 EXPORT_SYMBOL(seq_read);
524 EXPORT_SYMBOL(seq_lseek);
525 EXPORT_SYMBOL(single_open);
526 EXPORT_SYMBOL(single_release);
527
528 /* Program loader interfaces */
529 EXPORT_SYMBOL(setup_arg_pages);
530 EXPORT_SYMBOL(copy_strings_kernel);
531 EXPORT_SYMBOL(do_execve);
532 EXPORT_SYMBOL(flush_old_exec);
533 EXPORT_SYMBOL(kernel_read);
534 EXPORT_SYMBOL(open_exec);
535
536 /* Miscellaneous access points */
537 EXPORT_SYMBOL(si_meminfo);
538
539 /* Added to make file system as module */
540 EXPORT_SYMBOL(sys_tz);
541 EXPORT_SYMBOL(file_fsync);
542 EXPORT_SYMBOL(fsync_buffers_list);
543 EXPORT_SYMBOL(clear_inode);
544 EXPORT_SYMBOL(init_special_inode);
545 EXPORT_SYMBOL(__get_hash_table);
546 EXPORT_SYMBOL(new_inode);
547 EXPORT_SYMBOL(__insert_inode_hash);
548 EXPORT_SYMBOL(remove_inode_hash);
549 EXPORT_SYMBOL(buffer_insert_list);
550 EXPORT_SYMBOL(make_bad_inode);
551 EXPORT_SYMBOL(is_bad_inode);
552 EXPORT_SYMBOL(event);
553 EXPORT_SYMBOL(brw_page);
554
555 #ifdef CONFIG_UID16
556 EXPORT_SYMBOL(overflowuid);
557 EXPORT_SYMBOL(overflowgid);
558 #endif
559 EXPORT_SYMBOL(fs_overflowuid);
560 EXPORT_SYMBOL(fs_overflowgid);
561
562 /* all busmice */
563 EXPORT_SYMBOL(fasync_helper);
564 EXPORT_SYMBOL(kill_fasync);
565
566 EXPORT_SYMBOL(disk_name);       /* for md.c */
567
568 /* binfmt_aout */
569 EXPORT_SYMBOL(get_write_access);
570
571 /* library functions */
572 EXPORT_SYMBOL(strnicmp);
573 EXPORT_SYMBOL(strspn);
574 EXPORT_SYMBOL(strsep);
575
576 /* software interrupts */
577 EXPORT_SYMBOL(bh_task_vec);
578 EXPORT_SYMBOL(init_bh);
579 EXPORT_SYMBOL(remove_bh);
580 EXPORT_SYMBOL(tasklet_init);
581 EXPORT_SYMBOL(tasklet_kill);
582 EXPORT_SYMBOL(__run_task_queue);
583 EXPORT_SYMBOL(do_softirq);
584 EXPORT_SYMBOL(raise_softirq);
585 EXPORT_SYMBOL(cpu_raise_softirq);
586 EXPORT_SYMBOL(__tasklet_schedule);
587 EXPORT_SYMBOL(__tasklet_hi_schedule);
588
589 /* init task, for moving kthread roots - ought to export a function ?? */
590
591 EXPORT_SYMBOL(init_task);
592 EXPORT_SYMBOL(init_thread_union);
593
594 EXPORT_SYMBOL(tasklist_lock);
595 EXPORT_SYMBOL(pidhash);