diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2008-02-05 01:27:21 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 12:44:07 -0500 |
commit | 59714d65dfbc86d5cb93adc5bac57a921cc2fa84 (patch) | |
tree | 10eda85ccab88fb707d6c6b4f4fb7f2e9bd1f4e1 /include/linux/sched.h | |
parent | 0ccf831cbee94df9c5006dd46248c0f07847dd7c (diff) |
get_task_comm(): return the result
It was dumb to make get_task_comm() return void. Change it to return a
pointer to the resulting output for caller convenience.
Cc: Ulrich Drepper <drepper@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index af6947e69b40..680bb03a4b90 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1770,7 +1770,7 @@ extern long do_fork(unsigned long, unsigned long, struct pt_regs *, unsigned lon | |||
1770 | struct task_struct *fork_idle(int); | 1770 | struct task_struct *fork_idle(int); |
1771 | 1771 | ||
1772 | extern void set_task_comm(struct task_struct *tsk, char *from); | 1772 | extern void set_task_comm(struct task_struct *tsk, char *from); |
1773 | extern void get_task_comm(char *to, struct task_struct *tsk); | 1773 | extern char *get_task_comm(char *to, struct task_struct *tsk); |
1774 | 1774 | ||
1775 | #ifdef CONFIG_SMP | 1775 | #ifdef CONFIG_SMP |
1776 | extern void wait_task_inactive(struct task_struct * p); | 1776 | extern void wait_task_inactive(struct task_struct * p); |