Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/sched.h
| Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | #define TS_RCU_TYPE_MAX 2 | ||||
| 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; | unsigned int fpu_ctx_level; | ||||
| }; | }; | ||||
| #define current ({ \ | struct task_struct *__lkpi_current(void); | ||||
| struct thread *__td = curthread; \ | #define current (__lkpi_current()) | ||||
| linux_set_current(__td); \ | |||||
| ((struct task_struct *)__td->td_lkpi_task); \ | |||||
| }) | |||||
| #define task_pid_group_leader(task) (task)->task_thread->td_proc->p_pid | #define task_pid_group_leader(task) (task)->task_thread->td_proc->p_pid | ||||
| #define task_pid(task) ((task)->pid) | #define task_pid(task) ((task)->pid) | ||||
| #define task_pid_nr(task) ((task)->pid) | #define task_pid_nr(task) ((task)->pid) | ||||
| #define task_pid_vnr(task) ((task)->pid) | #define task_pid_vnr(task) ((task)->pid) | ||||
| #define get_pid(x) (x) | #define get_pid(x) (x) | ||||
| #define put_pid(x) do { } while (0) | #define put_pid(x) do { } while (0) | ||||
| #define current_euid() (curthread->td_ucred->cr_uid) | #define current_euid() (curthread->td_ucred->cr_uid) | ||||
| ▲ Show 20 Lines • Show All 136 Lines • Show Last 20 Lines | |||||