OSDN Git Service

export kernel call get_task_comm().
authorJ Freyensee <james_p_freyensee@linux.intel.com>
Fri, 6 May 2011 23:56:47 +0000 (16:56 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 May 2011 23:30:59 +0000 (16:30 -0700)
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>
fs/exec.c

index 5e62d26..7de9495 100644 (file)
--- 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)
 {