diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index ea74596014a2..b8a98427f964 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -2421,7 +2421,11 @@ extern long do_fork(unsigned long, unsigned long, unsigned long, int __user *, i | |||
2421 | struct task_struct *fork_idle(int); | 2421 | struct task_struct *fork_idle(int); |
2422 | extern pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags); | 2422 | extern pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags); |
2423 | 2423 | ||
2424 | extern void set_task_comm(struct task_struct *tsk, const char *from); | 2424 | extern void __set_task_comm(struct task_struct *tsk, const char *from, bool exec); |
2425 | static inline void set_task_comm(struct task_struct *tsk, const char *from) | ||
2426 | { | ||
2427 | __set_task_comm(tsk, from, false); | ||
2428 | } | ||
2425 | extern char *get_task_comm(char *to, struct task_struct *tsk); | 2429 | extern char *get_task_comm(char *to, struct task_struct *tsk); |
2426 | 2430 | ||
2427 | #ifdef CONFIG_SMP | 2431 | #ifdef CONFIG_SMP |