Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linux/linux_util.c
Show All 40 Lines | |||||
#include <sys/malloc.h> | #include <sys/malloc.h> | ||||
#include <sys/kernel.h> | #include <sys/kernel.h> | ||||
#include <sys/linker_set.h> | #include <sys/linker_set.h> | ||||
#include <sys/mutex.h> | #include <sys/mutex.h> | ||||
#include <sys/namei.h> | #include <sys/namei.h> | ||||
#include <sys/proc.h> | #include <sys/proc.h> | ||||
#include <sys/sdt.h> | #include <sys/sdt.h> | ||||
#include <sys/syscallsubr.h> | #include <sys/syscallsubr.h> | ||||
#include <sys/sysctl.h> | |||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
#include <sys/vnode.h> | #include <sys/vnode.h> | ||||
#include <machine/stdarg.h> | #include <machine/stdarg.h> | ||||
#include <compat/linux/linux_mib.h> | |||||
#include <compat/linux/linux_util.h> | #include <compat/linux/linux_util.h> | ||||
MALLOC_DEFINE(M_LINUX, "linux", "Linux mode structures"); | MALLOC_DEFINE(M_LINUX, "linux", "Linux mode structures"); | ||||
MALLOC_DEFINE(M_EPOLL, "lepoll", "Linux events structures"); | MALLOC_DEFINE(M_EPOLL, "lepoll", "Linux events structures"); | ||||
MALLOC_DEFINE(M_FUTEX, "futex", "Linux futexes"); | MALLOC_DEFINE(M_FUTEX, "futex", "Linux futexes"); | ||||
MALLOC_DEFINE(M_FUTEX_WP, "futex wp", "Linux futex waiting proc"); | MALLOC_DEFINE(M_FUTEX_WP, "futex wp", "Linux futex waiting proc"); | ||||
const char linux_emul_path[] = "/compat/linux"; | char linux_emul_path[MAXPATHLEN] = "/compat/linux"; | ||||
SYSCTL_STRING(_compat_linux, OID_AUTO, emul_path, CTLFLAG_RWTUN, | |||||
linux_emul_path, sizeof(linux_emul_path), "Binary prefix path"); | |||||
/* | /* | ||||
* Search an alternate path before passing pathname arguments on to | * Search an alternate path before passing pathname arguments on to | ||||
* system calls. Useful for keeping a separate 'emulation tree'. | * system calls. Useful for keeping a separate 'emulation tree'. | ||||
* | * | ||||
* If cflag is set, we check if an attempt can be made to create the | * If cflag is set, we check if an attempt can be made to create the | ||||
* named file, i.e. we check if the directory it should be in exists. | * named file, i.e. we check if the directory it should be in exists. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 204 Lines • Show Last 20 Lines |