Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/compat.h
- This file was copied to sys/compat/linuxkpi/common/src/linux_domain.c.
Show All 29 Lines | |||||
*/ | */ | ||||
#ifndef _LINUX_COMPAT_H_ | #ifndef _LINUX_COMPAT_H_ | ||||
#define _LINUX_COMPAT_H_ | #define _LINUX_COMPAT_H_ | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/proc.h> | #include <sys/proc.h> | ||||
#include <sys/malloc.h> | #include <sys/malloc.h> | ||||
struct domainset; | |||||
struct thread; | struct thread; | ||||
struct task_struct; | struct task_struct; | ||||
extern int linux_alloc_current(struct thread *, int flags); | extern int linux_alloc_current(struct thread *, int flags); | ||||
extern void linux_free_current(struct task_struct *); | extern void linux_free_current(struct task_struct *); | ||||
extern struct domainset *linux_get_vm_domain_set(int node); | |||||
static inline void | static inline void | ||||
linux_set_current(struct thread *td) | linux_set_current(struct thread *td) | ||||
{ | { | ||||
if (__predict_false(td->td_lkpi_task == NULL)) | if (__predict_false(td->td_lkpi_task == NULL)) | ||||
lkpi_alloc_current(td, M_WAITOK); | lkpi_alloc_current(td, M_WAITOK); | ||||
} | } | ||||
Show All 9 Lines |