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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index bd2675efd68d..379531c08975 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1296,6 +1296,7 @@ struct task_struct {
1296 struct mutex cred_guard_mutex; /* guard against foreign influences on 1296 struct mutex cred_guard_mutex; /* guard against foreign influences on
1297 * credential calculations 1297 * credential calculations
1298 * (notably. ptrace) */ 1298 * (notably. ptrace) */
1299 struct cred *replacement_session_keyring; /* for KEYCTL_SESSION_TO_PARENT */
1299 1300
1300 char comm[TASK_COMM_LEN]; /* executable name excluding path 1301 char comm[TASK_COMM_LEN]; /* executable name excluding path
1301 - access with [gs]et_task_comm (which lock 1302 - access with [gs]et_task_comm (which lock
@@ -2103,7 +2104,7 @@ static inline unsigned long wait_task_inactive(struct task_struct *p,
2103#define for_each_process(p) \ 2104#define for_each_process(p) \
2104 for (p = &init_task ; (p = next_task(p)) != &init_task ; ) 2105 for (p = &init_task ; (p = next_task(p)) != &init_task ; )
2105 2106
2106extern bool is_single_threaded(struct task_struct *); 2107extern bool current_is_single_threaded(void);
2107 2108
2108/* 2109/*
2109 * Careful: do_each_thread/while_each_thread is a double loop so 2110 * Careful: do_each_thread/while_each_thread is a double loop so