Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/sched.h
| Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | struct task_struct { | ||||
| struct completion parked; | struct completion parked; | ||||
| struct completion exited; | struct completion exited; | ||||
| #define TS_RCU_TYPE_MAX 2 | #define TS_RCU_TYPE_MAX 2 | ||||
| TAILQ_ENTRY(task_struct) rcu_entry[TS_RCU_TYPE_MAX]; | TAILQ_ENTRY(task_struct) rcu_entry[TS_RCU_TYPE_MAX]; | ||||
| int rcu_recurse[TS_RCU_TYPE_MAX]; | int rcu_recurse[TS_RCU_TYPE_MAX]; | ||||
| 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; | struct task_struct *group_leader; | ||||
| unsigned rcu_section[TS_RCU_TYPE_MAX]; | unsigned rcu_section[TS_RCU_TYPE_MAX]; | ||||
| unsigned int fpu_ctx_level; | |||||
| }; | }; | ||||
| #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 | |||||