2 * Herein lies all the functions/variables that are "exported" for linkage
3 * with dynamically loaded kernel modules.
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>
44 #include <linux/capability.h>
45 #include <linux/highuid.h>
46 #include <linux/brlock.h>
48 #if defined(CONFIG_PROC_FS)
49 #include <linux/proc_fs.h>
52 #include <linux/kmod.h>
55 extern int console_loglevel
;
56 extern void set_device_ro(kdev_t dev
,int flag
);
57 #if !defined(CONFIG_NFSD) && defined(CONFIG_NFSD_MODULE)
58 extern int (*do_nfsservctl
)(int, void *, void *);
61 extern void *sys_call_table
;
64 extern int request_dma(unsigned int dmanr
, char * deviceID
);
65 extern void free_dma(unsigned int dmanr
);
66 extern spinlock_t dma_spin_lock
;
68 #ifdef CONFIG_MODVERSIONS
69 const struct module_symbol __export_Using_Versions
70 __attribute__((section("__ksymtab"))) = {
71 1 /* Version version */, "Using_Versions"
77 EXPORT_SYMBOL(request_module
);
78 EXPORT_SYMBOL(exec_usermodehelper
);
82 EXPORT_SYMBOL(get_module_symbol
);
83 EXPORT_SYMBOL(try_inc_mod_count
);
85 EXPORT_SYMBOL(get_option
);
86 EXPORT_SYMBOL(get_options
);
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
);
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
);
130 /* filesystem internal functions */
131 EXPORT_SYMBOL(def_blk_fops
);
132 EXPORT_SYMBOL(in_group_p
);
133 EXPORT_SYMBOL(update_atime
);
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
);
142 EXPORT_SYMBOL(follow_up
);
143 EXPORT_SYMBOL(follow_down
);
144 EXPORT_SYMBOL(path_init
);
145 EXPORT_SYMBOL(path_walk
);
146 EXPORT_SYMBOL(path_release
);
147 EXPORT_SYMBOL(__user_walk
);
148 EXPORT_SYMBOL(lookup_one
);
149 EXPORT_SYMBOL(lookup_hash
);
150 EXPORT_SYMBOL(sys_close
);
151 EXPORT_SYMBOL(d_alloc_root
);
152 EXPORT_SYMBOL(d_delete
);
153 EXPORT_SYMBOL(d_validate
);
154 EXPORT_SYMBOL(d_rehash
);
155 EXPORT_SYMBOL(d_invalidate
); /* May be it will be better in dcache.h? */
156 EXPORT_SYMBOL(d_move
);
157 EXPORT_SYMBOL(d_instantiate
);
158 EXPORT_SYMBOL(d_alloc
);
159 EXPORT_SYMBOL(d_lookup
);
160 EXPORT_SYMBOL(__d_path
);
161 EXPORT_SYMBOL(mark_buffer_dirty
);
162 EXPORT_SYMBOL(__mark_buffer_dirty
);
163 EXPORT_SYMBOL(__mark_inode_dirty
);
164 EXPORT_SYMBOL(get_empty_filp
);
165 EXPORT_SYMBOL(init_private_file
);
166 EXPORT_SYMBOL(filp_open
);
167 EXPORT_SYMBOL(filp_close
);
168 EXPORT_SYMBOL(put_filp
);
169 EXPORT_SYMBOL(files_lock
);
170 EXPORT_SYMBOL(check_disk_change
);
171 EXPORT_SYMBOL(__invalidate_buffers
);
172 EXPORT_SYMBOL(invalidate_inodes
);
173 EXPORT_SYMBOL(invalidate_inode_pages
);
174 EXPORT_SYMBOL(truncate_inode_pages
);
175 EXPORT_SYMBOL(fsync_dev
);
176 EXPORT_SYMBOL(permission
);
177 EXPORT_SYMBOL(inode_setattr
);
178 EXPORT_SYMBOL(inode_change_ok
);
179 EXPORT_SYMBOL(write_inode_now
);
180 EXPORT_SYMBOL(notify_change
);
181 EXPORT_SYMBOL(get_hardblocksize
);
182 EXPORT_SYMBOL(set_blocksize
);
183 EXPORT_SYMBOL(getblk
);
184 EXPORT_SYMBOL(bdget
);
185 EXPORT_SYMBOL(bdput
);
186 EXPORT_SYMBOL(bread
);
187 EXPORT_SYMBOL(breada
);
188 EXPORT_SYMBOL(__brelse
);
189 EXPORT_SYMBOL(__bforget
);
190 EXPORT_SYMBOL(ll_rw_block
);
191 EXPORT_SYMBOL(__wait_on_buffer
);
192 EXPORT_SYMBOL(___wait_on_page
);
193 EXPORT_SYMBOL(block_write_full_page
);
194 EXPORT_SYMBOL(block_read_full_page
);
195 EXPORT_SYMBOL(block_prepare_write
);
196 EXPORT_SYMBOL(block_sync_page
);
197 EXPORT_SYMBOL(cont_prepare_write
);
198 EXPORT_SYMBOL(generic_commit_write
);
199 EXPORT_SYMBOL(generic_block_bmap
);
200 EXPORT_SYMBOL(generic_file_read
);
201 EXPORT_SYMBOL(do_generic_file_read
);
202 EXPORT_SYMBOL(generic_file_write
);
203 EXPORT_SYMBOL(generic_file_mmap
);
204 EXPORT_SYMBOL(generic_ro_fops
);
205 EXPORT_SYMBOL(generic_buffer_fdatasync
);
206 EXPORT_SYMBOL(page_hash_bits
);
207 EXPORT_SYMBOL(page_hash_table
);
208 EXPORT_SYMBOL(file_lock_table
);
209 EXPORT_SYMBOL(posix_lock_file
);
210 EXPORT_SYMBOL(posix_test_lock
);
211 EXPORT_SYMBOL(posix_block_lock
);
212 EXPORT_SYMBOL(posix_unblock_lock
);
213 EXPORT_SYMBOL(locks_mandatory_area
);
215 EXPORT_SYMBOL(have_submounts
);
216 EXPORT_SYMBOL(d_genocide
);
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
);
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(wait_for_request
);
275 EXPORT_SYMBOL(blksize_size
);
276 EXPORT_SYMBOL(hardsect_size
);
277 EXPORT_SYMBOL(blk_size
);
278 EXPORT_SYMBOL(blk_dev
);
279 EXPORT_SYMBOL(is_read_only
);
280 EXPORT_SYMBOL(set_device_ro
);
282 EXPORT_SYMBOL(sync_dev
);
283 EXPORT_SYMBOL(devfs_register_partitions
);
284 EXPORT_SYMBOL(blkdev_open
);
285 EXPORT_SYMBOL(blkdev_get
);
286 EXPORT_SYMBOL(blkdev_put
);
287 EXPORT_SYMBOL(ioctl_by_bdev
);
288 EXPORT_SYMBOL(gendisk_head
);
289 EXPORT_SYMBOL(grok_partitions
);
290 EXPORT_SYMBOL(register_disk
);
291 EXPORT_SYMBOL(tq_disk
);
292 EXPORT_SYMBOL(init_buffer
);
293 EXPORT_SYMBOL(refile_buffer
);
294 EXPORT_SYMBOL(max_sectors
);
295 EXPORT_SYMBOL(max_readahead
);
296 EXPORT_SYMBOL(file_moveto
);
299 EXPORT_SYMBOL(tty_hangup
);
300 EXPORT_SYMBOL(tty_wait_until_sent
);
301 EXPORT_SYMBOL(tty_check_change
);
302 EXPORT_SYMBOL(tty_hung_up_p
);
303 EXPORT_SYMBOL(tty_flip_buffer_push
);
304 EXPORT_SYMBOL(tty_get_baud_rate
);
305 EXPORT_SYMBOL(do_SAK
);
306 EXPORT_SYMBOL(console_print
);
307 EXPORT_SYMBOL(console_loglevel
);
309 /* filesystem registration */
310 EXPORT_SYMBOL(register_filesystem
);
311 EXPORT_SYMBOL(unregister_filesystem
);
312 EXPORT_SYMBOL(kern_mount
);
313 EXPORT_SYMBOL(kern_umount
);
314 EXPORT_SYMBOL(may_umount
);
316 /* executable format registration */
317 EXPORT_SYMBOL(register_binfmt
);
318 EXPORT_SYMBOL(unregister_binfmt
);
319 EXPORT_SYMBOL(search_binary_handler
);
320 EXPORT_SYMBOL(prepare_binprm
);
321 EXPORT_SYMBOL(compute_creds
);
322 EXPORT_SYMBOL(remove_arg_zero
);
323 EXPORT_SYMBOL(set_binfmt
);
325 /* execution environment registration */
326 EXPORT_SYMBOL(register_exec_domain
);
327 EXPORT_SYMBOL(unregister_exec_domain
);
328 EXPORT_SYMBOL(__set_personality
);
330 /* sysctl table registration */
331 EXPORT_SYMBOL(register_sysctl_table
);
332 EXPORT_SYMBOL(unregister_sysctl_table
);
333 EXPORT_SYMBOL(sysctl_string
);
334 EXPORT_SYMBOL(sysctl_intvec
);
335 EXPORT_SYMBOL(proc_dostring
);
336 EXPORT_SYMBOL(proc_dointvec
);
337 EXPORT_SYMBOL(proc_dointvec_jiffies
);
338 EXPORT_SYMBOL(proc_dointvec_minmax
);
339 EXPORT_SYMBOL(proc_doulongvec_ms_jiffies_minmax
);
340 EXPORT_SYMBOL(proc_doulongvec_minmax
);
342 /* interrupt handling */
343 EXPORT_SYMBOL(add_timer
);
344 EXPORT_SYMBOL(del_timer
);
345 EXPORT_SYMBOL(request_irq
);
346 EXPORT_SYMBOL(free_irq
);
348 /* The notion of irq probe/assignment is foreign to S/390 */
350 #if !defined(CONFIG_ARCH_S390)
351 EXPORT_SYMBOL(probe_irq_on
);
352 EXPORT_SYMBOL(probe_irq_off
);
353 EXPORT_SYMBOL(autoirq_setup
);
354 EXPORT_SYMBOL(autoirq_report
);
358 EXPORT_SYMBOL(del_timer_sync
);
360 EXPORT_SYMBOL(mod_timer
);
361 EXPORT_SYMBOL(tq_timer
);
362 EXPORT_SYMBOL(tq_immediate
);
363 EXPORT_SYMBOL(tq_scheduler
);
364 EXPORT_SYMBOL(timer_active
);
365 EXPORT_SYMBOL(timer_table
);
368 /* Various random spinlocks we want to export */
369 EXPORT_SYMBOL(tqueue_lock
);
371 /* Big-Reader lock implementation */
372 EXPORT_SYMBOL(__brlock_array
);
373 #ifndef __BRLOCK_USE_ATOMICS
374 EXPORT_SYMBOL(__br_write_locks
);
376 EXPORT_SYMBOL(__br_write_lock
);
377 EXPORT_SYMBOL(__br_write_unlock
);
381 EXPORT_SYMBOL(kiobuf_init
);
383 EXPORT_SYMBOL(alloc_kiovec
);
384 EXPORT_SYMBOL(free_kiovec
);
385 EXPORT_SYMBOL(expand_kiobuf
);
387 EXPORT_SYMBOL(map_user_kiobuf
);
388 EXPORT_SYMBOL(unmap_kiobuf
);
389 EXPORT_SYMBOL(lock_kiovec
);
390 EXPORT_SYMBOL(unlock_kiovec
);
391 EXPORT_SYMBOL(brw_kiovec
);
394 EXPORT_SYMBOL(request_dma
);
395 EXPORT_SYMBOL(free_dma
);
396 EXPORT_SYMBOL(dma_spin_lock
);
397 #ifdef HAVE_DISABLE_HLT
398 EXPORT_SYMBOL(disable_hlt
);
399 EXPORT_SYMBOL(enable_hlt
);
402 /* resource handling */
403 EXPORT_SYMBOL(request_resource
);
404 EXPORT_SYMBOL(release_resource
);
405 EXPORT_SYMBOL(allocate_resource
);
406 EXPORT_SYMBOL(check_resource
);
407 EXPORT_SYMBOL(__request_region
);
408 EXPORT_SYMBOL(__check_region
);
409 EXPORT_SYMBOL(__release_region
);
410 EXPORT_SYMBOL(ioport_resource
);
411 EXPORT_SYMBOL(iomem_resource
);
413 /* process management */
414 EXPORT_SYMBOL(__wake_up
);
415 EXPORT_SYMBOL(wake_up_process
);
416 EXPORT_SYMBOL(sleep_on
);
417 EXPORT_SYMBOL(sleep_on_timeout
);
418 EXPORT_SYMBOL(interruptible_sleep_on
);
419 EXPORT_SYMBOL(interruptible_sleep_on_timeout
);
420 EXPORT_SYMBOL(schedule
);
421 EXPORT_SYMBOL(schedule_timeout
);
422 EXPORT_SYMBOL(jiffies
);
423 EXPORT_SYMBOL(xtime
);
424 EXPORT_SYMBOL(do_gettimeofday
);
425 EXPORT_SYMBOL(do_settimeofday
);
427 EXPORT_SYMBOL(loops_per_sec
);
429 EXPORT_SYMBOL(kstat
);
430 EXPORT_SYMBOL(nr_running
);
433 EXPORT_SYMBOL(panic
);
434 EXPORT_SYMBOL(printk
);
435 EXPORT_SYMBOL(sprintf
);
436 EXPORT_SYMBOL(vsprintf
);
437 EXPORT_SYMBOL(kdevname
);
438 EXPORT_SYMBOL(bdevname
);
439 EXPORT_SYMBOL(cdevname
);
440 EXPORT_SYMBOL(simple_strtoul
);
441 EXPORT_SYMBOL(system_utsname
); /* UTS data */
442 EXPORT_SYMBOL(uts_sem
); /* UTS semaphore */
443 EXPORT_SYMBOL(sys_call_table
);
444 EXPORT_SYMBOL(machine_restart
);
445 EXPORT_SYMBOL(machine_halt
);
446 EXPORT_SYMBOL(machine_power_off
);
447 EXPORT_SYMBOL(register_reboot_notifier
);
448 EXPORT_SYMBOL(unregister_reboot_notifier
);
449 EXPORT_SYMBOL(_ctype
);
450 EXPORT_SYMBOL(secure_tcp_sequence_number
);
451 EXPORT_SYMBOL(get_random_bytes
);
452 EXPORT_SYMBOL(securebits
);
453 EXPORT_SYMBOL(cap_bset
);
454 EXPORT_SYMBOL(daemonize
);
456 /* Program loader interfaces */
457 EXPORT_SYMBOL(setup_arg_pages
);
458 EXPORT_SYMBOL(copy_strings_kernel
);
459 EXPORT_SYMBOL(do_execve
);
460 EXPORT_SYMBOL(flush_old_exec
);
461 EXPORT_SYMBOL(kernel_read
);
462 EXPORT_SYMBOL(open_exec
);
464 /* Miscellaneous access points */
465 EXPORT_SYMBOL(si_meminfo
);
467 /* Added to make file system as module */
468 EXPORT_SYMBOL(sys_tz
);
469 EXPORT_SYMBOL(__wait_on_super
);
470 EXPORT_SYMBOL(file_fsync
);
471 EXPORT_SYMBOL(clear_inode
);
472 EXPORT_SYMBOL(nr_async_pages
);
473 EXPORT_SYMBOL(___strtok
);
474 EXPORT_SYMBOL(init_special_inode
);
475 EXPORT_SYMBOL(read_ahead
);
476 EXPORT_SYMBOL(get_hash_table
);
477 EXPORT_SYMBOL(get_empty_inode
);
478 EXPORT_SYMBOL(insert_inode_hash
);
479 EXPORT_SYMBOL(remove_inode_hash
);
480 EXPORT_SYMBOL(make_bad_inode
);
481 EXPORT_SYMBOL(is_bad_inode
);
482 EXPORT_SYMBOL(event
);
483 EXPORT_SYMBOL(__down
);
484 EXPORT_SYMBOL(__down_interruptible
);
485 EXPORT_SYMBOL(__down_trylock
);
487 EXPORT_SYMBOL(brw_page
);
490 EXPORT_SYMBOL(overflowuid
);
491 EXPORT_SYMBOL(overflowgid
);
493 EXPORT_SYMBOL(fs_overflowuid
);
494 EXPORT_SYMBOL(fs_overflowgid
);
497 EXPORT_SYMBOL(fasync_helper
);
499 #ifdef CONFIG_BLK_DEV_MD
500 EXPORT_SYMBOL(disk_name
); /* for md.c */
504 EXPORT_SYMBOL(get_write_access
);
505 EXPORT_SYMBOL(put_write_access
);
507 /* dynamic registering of consoles */
508 EXPORT_SYMBOL(register_console
);
509 EXPORT_SYMBOL(unregister_console
);
512 EXPORT_SYMBOL(get_fast_time
);
514 /* library functions */
515 EXPORT_SYMBOL(strnicmp
);
516 EXPORT_SYMBOL(strspn
);
518 /* software interrupts */
519 EXPORT_SYMBOL(tasklet_hi_vec
);
520 EXPORT_SYMBOL(tasklet_vec
);
521 EXPORT_SYMBOL(bh_task_vec
);
522 EXPORT_SYMBOL(init_bh
);
523 EXPORT_SYMBOL(remove_bh
);
524 EXPORT_SYMBOL(tasklet_init
);
525 EXPORT_SYMBOL(tasklet_kill
);
527 /* init task, for moving kthread roots - ought to export a function ?? */
529 EXPORT_SYMBOL(init_task_union
);
531 EXPORT_SYMBOL(tasklist_lock
);
532 EXPORT_SYMBOL(pidhash
);