aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 5e8a0ba61749..270d864a8ff1 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1047,6 +1047,11 @@ static inline pid_t process_group(struct task_struct *tsk)
1047 return tsk->signal->pgrp; 1047 return tsk->signal->pgrp;
1048} 1048}
1049 1049
1050static inline pid_t process_session(struct task_struct *tsk)
1051{
1052 return tsk->signal->session;
1053}
1054
1050static inline struct pid *task_pid(struct task_struct *task) 1055static inline struct pid *task_pid(struct task_struct *task)
1051{ 1056{
1052 return task->pids[PIDTYPE_PID].pid; 1057 return task->pids[PIDTYPE_PID].pid;