Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/systm.h
Show First 20 Lines • Show All 231 Lines • ▼ Show 20 Lines | |||||
void critical_enter_KBI(void); | void critical_enter_KBI(void); | ||||
void critical_exit_KBI(void); | void critical_exit_KBI(void); | ||||
void critical_exit_preempt(void); | void critical_exit_preempt(void); | ||||
void init_param1(void); | void init_param1(void); | ||||
void init_param2(long physpages); | void init_param2(long physpages); | ||||
void init_static_kenv(char *, size_t); | void init_static_kenv(char *, size_t); | ||||
void tablefull(const char *); | void tablefull(const char *); | ||||
/* | |||||
* Allocate per-thread "current" state in the linuxkpi | |||||
*/ | |||||
extern int (*lkpi_alloc_current)(struct thread *, int); | |||||
int linux_alloc_current_noop(struct thread *, int); | |||||
#if defined(KLD_MODULE) || defined(KTR_CRITICAL) || !defined(_KERNEL) || defined(GENOFFSET) | #if defined(KLD_MODULE) || defined(KTR_CRITICAL) || !defined(_KERNEL) || defined(GENOFFSET) | ||||
#define critical_enter() critical_enter_KBI() | #define critical_enter() critical_enter_KBI() | ||||
#define critical_exit() critical_exit_KBI() | #define critical_exit() critical_exit_KBI() | ||||
#else | #else | ||||
static __inline void | static __inline void | ||||
critical_enter(void) | critical_enter(void) | ||||
{ | { | ||||
struct thread_lite *td; | struct thread_lite *td; | ||||
▲ Show 20 Lines • Show All 330 Lines • Show Last 20 Lines |