Import 2.3.30pre6
[davej-history.git] / kernel / ksyms.c
blob928f04a6b7b363de69b3d5efe1e3ed4212be51b4
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/mm.h>
43 #include <linux/capability.h>
45 #if defined(CONFIG_PROC_FS)
46 #include <linux/proc_fs.h>
47 #endif
48 #ifdef CONFIG_KMOD
49 #include <linux/kmod.h>
50 #endif
52 extern int console_loglevel;
53 extern void set_device_ro(kdev_t dev,int flag);
54 extern struct file_operations * get_blkfops(unsigned int);
55 extern int blkdev_release(struct inode * inode);
56 #if !defined(CONFIG_NFSD) && defined(CONFIG_NFSD_MODULE)
57 extern int (*do_nfsservctl)(int, void *, void *);
58 #endif
60 extern void *sys_call_table;
62 extern int sys_tz;
63 extern int request_dma(unsigned int dmanr, char * deviceID);
64 extern void free_dma(unsigned int dmanr);
65 extern spinlock_t dma_spin_lock;
67 #ifdef CONFIG_MODVERSIONS
68 const struct module_symbol __export_Using_Versions
69 __attribute__((section("__ksymtab"))) = {
70 1 /* Version version */, "Using_Versions"
72 #endif
75 #ifdef CONFIG_KMOD
76 EXPORT_SYMBOL(request_module);
77 #endif
79 #ifdef CONFIG_MODULES
80 EXPORT_SYMBOL(get_module_symbol);
81 #endif
82 EXPORT_SYMBOL(get_option);
83 EXPORT_SYMBOL(get_options);
85 /* process memory management */
86 EXPORT_SYMBOL(do_mmap);
87 EXPORT_SYMBOL(do_munmap);
88 EXPORT_SYMBOL(do_brk);
89 EXPORT_SYMBOL(exit_mm);
90 EXPORT_SYMBOL(exit_files);
91 EXPORT_SYMBOL(exit_fs);
92 EXPORT_SYMBOL(exit_sighand);
94 /* internal kernel memory management */
95 EXPORT_SYMBOL(__alloc_pages);
96 EXPORT_SYMBOL(__free_pages_ok);
97 EXPORT_SYMBOL(zonelists);
98 EXPORT_SYMBOL(kmem_find_general_cachep);
99 EXPORT_SYMBOL(kmem_cache_create);
100 EXPORT_SYMBOL(kmem_cache_destroy);
101 EXPORT_SYMBOL(kmem_cache_shrink);
102 EXPORT_SYMBOL(kmem_cache_alloc);
103 EXPORT_SYMBOL(kmem_cache_free);
104 EXPORT_SYMBOL(kmalloc);
105 EXPORT_SYMBOL(kfree);
106 EXPORT_SYMBOL(kfree_s);
107 EXPORT_SYMBOL(vmalloc);
108 EXPORT_SYMBOL(vfree);
109 EXPORT_SYMBOL(mem_map);
110 EXPORT_SYMBOL(remap_page_range);
111 EXPORT_SYMBOL(max_mapnr);
112 EXPORT_SYMBOL(high_memory);
113 EXPORT_SYMBOL(vmtruncate);
114 EXPORT_SYMBOL(find_vma);
115 EXPORT_SYMBOL(get_unmapped_area);
116 EXPORT_SYMBOL(init_mm);
117 #ifdef CONFIG_HIGHMEM
118 EXPORT_SYMBOL(kmap_high);
119 EXPORT_SYMBOL(kunmap_high);
120 EXPORT_SYMBOL(highmem_start_page);
121 #endif
123 /* filesystem internal functions */
124 EXPORT_SYMBOL(in_group_p);
125 EXPORT_SYMBOL(update_atime);
126 EXPORT_SYMBOL(get_super);
127 EXPORT_SYMBOL(get_fs_type);
128 EXPORT_SYMBOL(get_empty_super);
129 EXPORT_SYMBOL(remove_vfsmnt);
130 EXPORT_SYMBOL(getname);
131 EXPORT_SYMBOL(_fput);
132 EXPORT_SYMBOL(igrab);
133 EXPORT_SYMBOL(iunique);
134 EXPORT_SYMBOL(iget4);
135 EXPORT_SYMBOL(iput);
136 EXPORT_SYMBOL(__namei);
137 EXPORT_SYMBOL(lookup_dentry);
138 EXPORT_SYMBOL(open_namei);
139 EXPORT_SYMBOL(sys_close);
140 EXPORT_SYMBOL(d_alloc_root);
141 EXPORT_SYMBOL(d_delete);
142 EXPORT_SYMBOL(d_validate);
143 EXPORT_SYMBOL(d_rehash);
144 EXPORT_SYMBOL(d_invalidate); /* May be it will be better in dcache.h? */
145 EXPORT_SYMBOL(d_move);
146 EXPORT_SYMBOL(d_instantiate);
147 EXPORT_SYMBOL(d_alloc);
148 EXPORT_SYMBOL(d_lookup);
149 EXPORT_SYMBOL(d_path);
150 EXPORT_SYMBOL(__mark_buffer_dirty);
151 EXPORT_SYMBOL(__mark_inode_dirty);
152 EXPORT_SYMBOL(free_kiovec);
153 EXPORT_SYMBOL(brw_kiovec);
154 EXPORT_SYMBOL(alloc_kiovec);
155 EXPORT_SYMBOL(get_empty_filp);
156 EXPORT_SYMBOL(init_private_file);
157 EXPORT_SYMBOL(filp_open);
158 EXPORT_SYMBOL(filp_close);
159 EXPORT_SYMBOL(put_filp);
160 EXPORT_SYMBOL(files_lock);
161 EXPORT_SYMBOL(check_disk_change);
162 EXPORT_SYMBOL(invalidate_buffers);
163 EXPORT_SYMBOL(invalidate_inodes);
164 EXPORT_SYMBOL(invalidate_inode_pages);
165 EXPORT_SYMBOL(truncate_inode_pages);
166 EXPORT_SYMBOL(fsync_dev);
167 EXPORT_SYMBOL(permission);
168 EXPORT_SYMBOL(inode_setattr);
169 EXPORT_SYMBOL(inode_change_ok);
170 EXPORT_SYMBOL(write_inode_now);
171 EXPORT_SYMBOL(notify_change);
172 EXPORT_SYMBOL(get_hardblocksize);
173 EXPORT_SYMBOL(set_blocksize);
174 EXPORT_SYMBOL(getblk);
175 EXPORT_SYMBOL(bread);
176 EXPORT_SYMBOL(breada);
177 EXPORT_SYMBOL(__brelse);
178 EXPORT_SYMBOL(__bforget);
179 EXPORT_SYMBOL(ll_rw_block);
180 EXPORT_SYMBOL(__wait_on_buffer);
181 EXPORT_SYMBOL(___wait_on_page);
182 EXPORT_SYMBOL(add_blkdev_randomness);
183 EXPORT_SYMBOL(block_read_full_page);
184 EXPORT_SYMBOL(block_write_full_page);
185 EXPORT_SYMBOL(block_write_partial_page);
186 EXPORT_SYMBOL(block_write_cont_page);
187 EXPORT_SYMBOL(block_flushpage);
188 EXPORT_SYMBOL(generic_file_read);
189 EXPORT_SYMBOL(do_generic_file_read);
190 EXPORT_SYMBOL(generic_file_write);
191 EXPORT_SYMBOL(generic_file_mmap);
192 EXPORT_SYMBOL(generic_buffer_fdatasync);
193 EXPORT_SYMBOL(page_hash_bits);
194 EXPORT_SYMBOL(page_hash_table);
195 EXPORT_SYMBOL(file_lock_table);
196 EXPORT_SYMBOL(posix_lock_file);
197 EXPORT_SYMBOL(posix_test_lock);
198 EXPORT_SYMBOL(posix_block_lock);
199 EXPORT_SYMBOL(posix_unblock_lock);
200 EXPORT_SYMBOL(locks_mandatory_area);
201 EXPORT_SYMBOL(dput);
202 EXPORT_SYMBOL(put_cached_page);
203 EXPORT_SYMBOL(is_root_busy);
204 EXPORT_SYMBOL(prune_dcache);
205 EXPORT_SYMBOL(shrink_dcache_sb);
206 EXPORT_SYMBOL(shrink_dcache_parent);
207 EXPORT_SYMBOL(find_inode_number);
208 EXPORT_SYMBOL(is_subdir);
209 EXPORT_SYMBOL(get_unused_fd);
210 EXPORT_SYMBOL(vfs_rmdir);
211 EXPORT_SYMBOL(vfs_unlink);
212 EXPORT_SYMBOL(vfs_rename);
213 EXPORT_SYMBOL(__pollwait);
214 EXPORT_SYMBOL(ROOT_DEV);
215 EXPORT_SYMBOL(add_to_page_cache_unique);
216 EXPORT_SYMBOL(__find_get_page);
217 EXPORT_SYMBOL(__find_lock_page);
218 EXPORT_SYMBOL(grab_cache_page);
219 EXPORT_SYMBOL(read_cache_page);
221 #if !defined(CONFIG_NFSD) && defined(CONFIG_NFSD_MODULE)
222 EXPORT_SYMBOL(do_nfsservctl);
223 #endif
225 /* device registration */
226 EXPORT_SYMBOL(register_chrdev);
227 EXPORT_SYMBOL(unregister_chrdev);
228 EXPORT_SYMBOL(register_blkdev);
229 EXPORT_SYMBOL(unregister_blkdev);
230 EXPORT_SYMBOL(tty_register_driver);
231 EXPORT_SYMBOL(tty_unregister_driver);
232 EXPORT_SYMBOL(tty_std_termios);
234 /* block device driver support */
235 EXPORT_SYMBOL(block_read);
236 EXPORT_SYMBOL(block_write);
237 EXPORT_SYMBOL(block_fsync);
238 EXPORT_SYMBOL(wait_for_request);
239 EXPORT_SYMBOL(blksize_size);
240 EXPORT_SYMBOL(hardsect_size);
241 EXPORT_SYMBOL(blk_size);
242 EXPORT_SYMBOL(blk_dev);
243 EXPORT_SYMBOL(is_read_only);
244 EXPORT_SYMBOL(set_device_ro);
245 EXPORT_SYMBOL(bmap);
246 EXPORT_SYMBOL(sync_dev);
247 EXPORT_SYMBOL(get_blkfops);
248 EXPORT_SYMBOL(blkdev_open);
249 EXPORT_SYMBOL(blkdev_release);
250 EXPORT_SYMBOL(gendisk_head);
251 EXPORT_SYMBOL(resetup_one_dev);
252 EXPORT_SYMBOL(unplug_device);
253 EXPORT_SYMBOL(make_request);
254 EXPORT_SYMBOL(tq_disk);
255 EXPORT_SYMBOL(init_buffer);
256 EXPORT_SYMBOL(refile_buffer);
257 EXPORT_SYMBOL(max_sectors);
258 EXPORT_SYMBOL(max_segments);
259 EXPORT_SYMBOL(max_readahead);
260 EXPORT_SYMBOL(file_moveto);
262 /* tty routines */
263 EXPORT_SYMBOL(tty_hangup);
264 EXPORT_SYMBOL(tty_wait_until_sent);
265 EXPORT_SYMBOL(tty_check_change);
266 EXPORT_SYMBOL(tty_hung_up_p);
267 EXPORT_SYMBOL(tty_flip_buffer_push);
268 EXPORT_SYMBOL(tty_get_baud_rate);
269 EXPORT_SYMBOL(do_SAK);
270 EXPORT_SYMBOL(console_print);
271 EXPORT_SYMBOL(console_loglevel);
273 /* filesystem registration */
274 EXPORT_SYMBOL(register_filesystem);
275 EXPORT_SYMBOL(unregister_filesystem);
277 /* executable format registration */
278 EXPORT_SYMBOL(register_binfmt);
279 EXPORT_SYMBOL(unregister_binfmt);
280 EXPORT_SYMBOL(search_binary_handler);
281 EXPORT_SYMBOL(prepare_binprm);
282 EXPORT_SYMBOL(compute_creds);
283 EXPORT_SYMBOL(remove_arg_zero);
285 /* execution environment registration */
286 EXPORT_SYMBOL(lookup_exec_domain);
287 EXPORT_SYMBOL(register_exec_domain);
288 EXPORT_SYMBOL(unregister_exec_domain);
290 /* sysctl table registration */
291 EXPORT_SYMBOL(register_sysctl_table);
292 EXPORT_SYMBOL(unregister_sysctl_table);
293 EXPORT_SYMBOL(sysctl_string);
294 EXPORT_SYMBOL(sysctl_intvec);
295 EXPORT_SYMBOL(proc_dostring);
296 EXPORT_SYMBOL(proc_dointvec);
297 EXPORT_SYMBOL(proc_dointvec_jiffies);
298 EXPORT_SYMBOL(proc_dointvec_minmax);
299 EXPORT_SYMBOL(proc_doulongvec_ms_jiffies_minmax);
300 EXPORT_SYMBOL(proc_doulongvec_minmax);
302 /* interrupt handling */
303 EXPORT_SYMBOL(request_irq);
304 EXPORT_SYMBOL(free_irq);
305 EXPORT_SYMBOL(probe_irq_on);
306 EXPORT_SYMBOL(probe_irq_off);
307 EXPORT_SYMBOL(bh_active);
308 EXPORT_SYMBOL(bh_mask);
309 EXPORT_SYMBOL(bh_mask_count);
310 EXPORT_SYMBOL(bh_base);
311 EXPORT_SYMBOL(add_timer);
312 EXPORT_SYMBOL(del_timer);
313 EXPORT_SYMBOL(mod_timer);
314 EXPORT_SYMBOL(tq_timer);
315 EXPORT_SYMBOL(tq_immediate);
316 EXPORT_SYMBOL(tq_scheduler);
317 EXPORT_SYMBOL(timer_active);
318 EXPORT_SYMBOL(timer_table);
320 #ifdef __SMP__
321 /* Various random spinlocks we want to export */
322 EXPORT_SYMBOL(tqueue_lock);
323 #endif
325 /* autoirq from drivers/net/auto_irq.c */
326 EXPORT_SYMBOL(autoirq_setup);
327 EXPORT_SYMBOL(autoirq_report);
329 /* dma handling */
330 EXPORT_SYMBOL(request_dma);
331 EXPORT_SYMBOL(free_dma);
332 EXPORT_SYMBOL(dma_spin_lock);
333 #ifdef HAVE_DISABLE_HLT
334 EXPORT_SYMBOL(disable_hlt);
335 EXPORT_SYMBOL(enable_hlt);
336 #endif
338 /* resource handling */
339 EXPORT_SYMBOL(request_resource);
340 EXPORT_SYMBOL(release_resource);
341 EXPORT_SYMBOL(allocate_resource);
342 EXPORT_SYMBOL(__request_region);
343 EXPORT_SYMBOL(__check_region);
344 EXPORT_SYMBOL(__release_region);
345 EXPORT_SYMBOL(ioport_resource);
346 EXPORT_SYMBOL(iomem_resource);
348 /* process management */
349 EXPORT_SYMBOL(__wake_up);
350 EXPORT_SYMBOL(sleep_on);
351 EXPORT_SYMBOL(sleep_on_timeout);
352 EXPORT_SYMBOL(interruptible_sleep_on);
353 EXPORT_SYMBOL(interruptible_sleep_on_timeout);
354 EXPORT_SYMBOL(schedule);
355 EXPORT_SYMBOL(schedule_timeout);
356 EXPORT_SYMBOL(jiffies);
357 EXPORT_SYMBOL(xtime);
358 EXPORT_SYMBOL(do_gettimeofday);
359 EXPORT_SYMBOL(loops_per_sec);
360 EXPORT_SYMBOL(kstat);
362 /* misc */
363 EXPORT_SYMBOL(panic);
364 EXPORT_SYMBOL(printk);
365 EXPORT_SYMBOL(sprintf);
366 EXPORT_SYMBOL(vsprintf);
367 EXPORT_SYMBOL(kdevname);
368 EXPORT_SYMBOL(bdevname);
369 EXPORT_SYMBOL(cdevname);
370 EXPORT_SYMBOL(partition_name); /* md.c only */
371 EXPORT_SYMBOL(simple_strtoul);
372 EXPORT_SYMBOL(system_utsname); /* UTS data */
373 EXPORT_SYMBOL(uts_sem); /* UTS semaphore */
374 EXPORT_SYMBOL(sys_call_table);
375 EXPORT_SYMBOL(machine_restart);
376 EXPORT_SYMBOL(machine_halt);
377 EXPORT_SYMBOL(machine_power_off);
378 EXPORT_SYMBOL(register_reboot_notifier);
379 EXPORT_SYMBOL(unregister_reboot_notifier);
380 EXPORT_SYMBOL(_ctype);
381 EXPORT_SYMBOL(secure_tcp_sequence_number);
382 EXPORT_SYMBOL(get_random_bytes);
383 EXPORT_SYMBOL(securebits);
384 EXPORT_SYMBOL(cap_bset);
385 EXPORT_SYMBOL(daemonize);
387 /* Program loader interfaces */
388 EXPORT_SYMBOL(setup_arg_pages);
389 EXPORT_SYMBOL(copy_strings_kernel);
390 EXPORT_SYMBOL(do_execve);
391 EXPORT_SYMBOL(flush_old_exec);
392 EXPORT_SYMBOL(open_dentry);
393 EXPORT_SYMBOL(read_exec);
395 /* Miscellaneous access points */
396 EXPORT_SYMBOL(si_meminfo);
398 /* Added to make file system as module */
399 EXPORT_SYMBOL(sys_tz);
400 EXPORT_SYMBOL(__wait_on_super);
401 EXPORT_SYMBOL(file_fsync);
402 EXPORT_SYMBOL(clear_inode);
403 EXPORT_SYMBOL(nr_async_pages);
404 EXPORT_SYMBOL(___strtok);
405 EXPORT_SYMBOL(init_special_inode);
406 EXPORT_SYMBOL(init_fifo);
407 EXPORT_SYMBOL(fifo_inode_operations);
408 EXPORT_SYMBOL(chrdev_inode_operations);
409 EXPORT_SYMBOL(blkdev_inode_operations);
410 EXPORT_SYMBOL(read_ahead);
411 EXPORT_SYMBOL(get_hash_table);
412 EXPORT_SYMBOL(get_empty_inode);
413 EXPORT_SYMBOL(insert_inode_hash);
414 EXPORT_SYMBOL(remove_inode_hash);
415 EXPORT_SYMBOL(make_bad_inode);
416 EXPORT_SYMBOL(is_bad_inode);
417 EXPORT_SYMBOL(event);
418 EXPORT_SYMBOL(__down);
419 EXPORT_SYMBOL(__down_interruptible);
420 EXPORT_SYMBOL(__down_trylock);
421 EXPORT_SYMBOL(__up);
422 EXPORT_SYMBOL(brw_page);
424 /* all busmice */
425 EXPORT_SYMBOL(add_mouse_randomness);
426 EXPORT_SYMBOL(fasync_helper);
428 #ifdef CONFIG_BLK_DEV_MD
429 EXPORT_SYMBOL(disk_name); /* for md.c */
430 #endif
432 /* binfmt_aout */
433 EXPORT_SYMBOL(get_write_access);
434 EXPORT_SYMBOL(put_write_access);
436 /* dynamic registering of consoles */
437 EXPORT_SYMBOL(register_console);
438 EXPORT_SYMBOL(unregister_console);
440 /* time */
441 EXPORT_SYMBOL(get_fast_time);
443 /* library functions */
444 EXPORT_SYMBOL(strnicmp);
446 EXPORT_SYMBOL(init_task_union);