Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/src/linux_compat.c
Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | SYSCTL_INT(_compat_linuxkpi, OID_AUTO, debug, CTLFLAG_RWTUN, | ||||
&linuxkpi_debug, 0, "Set to enable pr_debug() prints. Clear to disable."); | &linuxkpi_debug, 0, "Set to enable pr_debug() prints. Clear to disable."); | ||||
static struct timeval lkpi_net_lastlog; | static struct timeval lkpi_net_lastlog; | ||||
static int lkpi_net_curpps; | static int lkpi_net_curpps; | ||||
static int lkpi_net_maxpps = 99; | static int lkpi_net_maxpps = 99; | ||||
SYSCTL_INT(_compat_linuxkpi, OID_AUTO, net_ratelimit, CTLFLAG_RWTUN, | SYSCTL_INT(_compat_linuxkpi, OID_AUTO, net_ratelimit, CTLFLAG_RWTUN, | ||||
&lkpi_net_maxpps, 0, "Limit number of LinuxKPI net messages per second."); | &lkpi_net_maxpps, 0, "Limit number of LinuxKPI net messages per second."); | ||||
MALLOC_DEFINE(M_KMALLOC, "linux", "Linux kmalloc compat"); | MALLOC_DEFINE(M_KMALLOC, "lkpikmalloc", "Linux kmalloc compat"); | ||||
#include <linux/rbtree.h> | #include <linux/rbtree.h> | ||||
/* Undo Linux compat changes. */ | /* Undo Linux compat changes. */ | ||||
#undef RB_ROOT | #undef RB_ROOT | ||||
#undef file | #undef file | ||||
#undef cdev | #undef cdev | ||||
#define RB_ROOT(head) (head)->rbh_root | #define RB_ROOT(head) (head)->rbh_root | ||||
▲ Show 20 Lines • Show All 2,572 Lines • Show Last 20 Lines |