aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linuxkpi/common/include')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/sched.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/sched.h b/sys/compat/linuxkpi/common/include/linux/sched.h
index 04abc8230775..19a2996d2c7c 100644
--- a/sys/compat/linuxkpi/common/include/linux/sched.h
+++ b/sys/compat/linuxkpi/common/include/linux/sched.h
@@ -69,6 +69,12 @@ struct task_struct {
#define current ((struct task_struct *)curthread->td_lkpi_task)
+#define task_pid(task) ((task)->task_thread->td_proc->p_pid)
+#define task_pid_nr(task) ((task)->task_thread->td_tid)
+#define get_pid(x) (x)
+#define put_pid(x)
+#define current_euid() (curthread->td_ucred->cr_uid)
+
#define set_current_state(x) \
atomic_store_rel_int((volatile int *)&current->state, (x))
#define __set_current_state(x) current->state = (x)