diff options
author | J Freyensee <james_p_freyensee@linux.intel.com> | 2011-05-07 03:56:47 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-05-14 03:30:59 +0400 |
commit | 7d74f492e4dd0034a61458eb80f70b1d2862ed07 (patch) | |
tree | 1be37b81f6cc0260314012a1e06b8779df0a4ec6 /fs/exec.c | |
parent | e0f263d719cc70245406cc26d86a480925e6a3c9 (diff) | |
download | linux-7d74f492e4dd0034a61458eb80f70b1d2862ed07.tar.xz |
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/exec.c')
-rw-r--r-- | fs/exec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/exec.c b/fs/exec.c index 5e62d26a4fec..7de94950a5b4 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1004,6 +1004,7 @@ char *get_task_comm(char *buf, struct task_struct *tsk) task_unlock(tsk); return buf; } +EXPORT_SYMBOL_GPL(get_task_comm); void set_task_comm(struct task_struct *tsk, char *buf) { |