Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/sched.h
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | struct task_struct { | ||||
void *bsd_ioctl_data; | void *bsd_ioctl_data; | ||||
unsigned bsd_ioctl_len; | unsigned bsd_ioctl_len; | ||||
struct completion parked; | struct completion parked; | ||||
struct completion exited; | struct completion exited; | ||||
TAILQ_ENTRY(task_struct) rcu_entry; | TAILQ_ENTRY(task_struct) rcu_entry; | ||||
int rcu_recurse; | int rcu_recurse; | ||||
int bsd_interrupt_value; | int bsd_interrupt_value; | ||||
struct work_struct *work; /* current work struct, if set */ | struct work_struct *work; /* current work struct, if set */ | ||||
struct task_struct *group_leader; | |||||
}; | }; | ||||
#define current ({ \ | #define current ({ \ | ||||
struct thread *__td = curthread; \ | struct thread *__td = curthread; \ | ||||
linux_set_current(__td); \ | linux_set_current(__td); \ | ||||
((struct task_struct *)__td->td_lkpi_task); \ | ((struct task_struct *)__td->td_lkpi_task); \ | ||||
}) | }) | ||||
▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines |