-#include <sys/syscall.h>
-
-#if ENABLE_FEATURE_2_6_MODULES
-static inline void filename2modname(char *modname, const char *afterslash)
-{
- unsigned int i;
- int kr_chk = 1;
-
- if (ENABLE_FEATURE_2_4_MODULES
- && get_linux_version_code() <= KERNEL_VERSION(2,6,0))
- kr_chk = 0;
-
- /* Convert to underscores, stop at first . */
- for (i = 0; afterslash[i] && afterslash[i] != '.'; i++) {
- if (kr_chk && (afterslash[i] == '-'))
- modname[i] = '_';
- else
- modname[i] = afterslash[i];
- }
- modname[i] = '\0';
-}
-#else
-void filename2modname(char *modname, const char *afterslash);
-#endif
-
-// There really should be a header file for this...
-
-int query_module(const char *name, int which, void *buf,
- size_t bufsize, size_t *ret);