diff options
author | dchagin <dchagin@FreeBSD.org> | 2015-05-24 15:51:18 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2015-05-24 15:51:18 +0000 |
commit | b08f3f43f9e901fdb2194f84eb02093e60665bab (patch) | |
tree | 727bdc803a1ee883bef970562b3e0caca6592c53 /sys/compat/linux/linux_misc.h | |
parent | 9e320cb48d75ef7f8df929c2aaccdfb1a4a3fc0b (diff) | |
download | FreeBSD-src-b08f3f43f9e901fdb2194f84eb02093e60665bab.zip FreeBSD-src-b08f3f43f9e901fdb2194f84eb02093e60665bab.tar.gz |
Introduce a new module linux_common.ko which is intended for the
following primary purposes:
1. Remove the dependency of linsysfs and linprocfs modules from linux.ko,
which will be architecture specific on amd64.
2. Incorporate into linux_common.ko general code for platforms on which
we'll support two Linuxulator modules (for both instruction set - 32 & 64 bit).
3. Move malloc(9) declaration to linux_common.ko, to enable getting memory
usage statistics properly.
Currently linux_common.ko incorporates a code from linux_mib.c and linux_util.c
and linprocfs, linsysfs and linux kernel modules depend on linux_common.ko.
Temporarily remove dtrace garbage from linux_mib.c and linux_util.c
Differential Revision: https://reviews.freebsd.org/D1072
In collaboration with: Vassilis Laganakos.
Reviewed by: trasz
Diffstat (limited to 'sys/compat/linux/linux_misc.h')
-rw-r--r-- | sys/compat/linux/linux_misc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_misc.h b/sys/compat/linux/linux_misc.h index b17ef86..2a90823 100644 --- a/sys/compat/linux/linux_misc.h +++ b/sys/compat/linux/linux_misc.h @@ -31,6 +31,8 @@ #ifndef _LINUX_MISC_H_ #define _LINUX_MISC_H_ +#include <sys/sysctl.h> + /* * Miscellaneous */ @@ -141,4 +143,6 @@ int linux_set_upcall_kse(struct thread *td, register_t stack); int linux_set_cloned_tls(struct thread *td, void *desc); struct thread *linux_tdfind(struct thread *, lwpid_t, pid_t); +int linux_sysctl_debug(SYSCTL_HANDLER_ARGS); + #endif /* _LINUX_MISC_H_ */ |