diff options
author | J Freyensee <james_p_freyensee@linux.intel.com> | 2011-05-06 19:56:47 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-05-13 19:30:59 -0400 |
commit | 7d74f492e4dd0034a61458eb80f70b1d2862ed07 (patch) | |
tree | 1be37b81f6cc0260314012a1e06b8779df0a4ec6 /fs | |
parent | e0f263d719cc70245406cc26d86a480925e6a3c9 (diff) |
export kernel call get_task_comm().
This allows drivers who call this function to be compiled modularly.
Otherwise, a driver who is interested in this type of functionality
has to implement their own get_task_comm() call, causing code
duplication in the Linux source tree.
Signed-off-by: J Freyensee <james_p_freyensee@linux.intel.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/exec.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1004,6 +1004,7 @@ char *get_task_comm(char *buf, struct task_struct *tsk) | |||
1004 | task_unlock(tsk); | 1004 | task_unlock(tsk); |
1005 | return buf; | 1005 | return buf; |
1006 | } | 1006 | } |
1007 | EXPORT_SYMBOL_GPL(get_task_comm); | ||
1007 | 1008 | ||
1008 | void set_task_comm(struct task_struct *tsk, char *buf) | 1009 | void set_task_comm(struct task_struct *tsk, char *buf) |
1009 | { | 1010 | { |