/* * linux/table/table_impl.c * Copyright (C) 1998 Martin Baulig */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "version.h" extern void scheduling_functions_start_here(void); extern void scheduling_functions_end_here(void); int (*table_function_ptr) (int, union table *, const void *) = 0; EXPORT_SYMBOL(table_function_ptr); EXPORT_SYMBOL(nr_running); EXPORT_SYMBOL(pidhash); EXPORT_SYMBOL(task); EXPORT_SYMBOL(si_swapinfo); EXPORT_SYMBOL(scheduling_functions_start_here); EXPORT_SYMBOL(scheduling_functions_end_here); EXPORT_SYMBOL(avenrun); EXPORT_SYMBOL(nr_tasks); EXPORT_SYMBOL(last_pid); EXPORT_SYMBOL(page_cache_size); EXPORT_SYMBOL(init_mm); asmlinkage int sys_table (int type, union table *buf, const void *param) { if (table_function_ptr == 0) return -ENOSYS; return (*table_function_ptr) (type, buf, param); }