Skip to content

Commit

Permalink
export kernel call get_task_comm().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
J Freyensee authored and gregkh committed May 13, 2011
1 parent e0f263d commit 7d74f49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/exec.c
Expand Up @@ -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)
{
Expand Down

0 comments on commit 7d74f49

Please sign in to comment.