[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1303511744-815-2-git-send-email-james_p_freyensee@linux.intel.com>
Date: Fri, 22 Apr 2011 15:35:44 -0700
From: james_p_freyensee@...ux.intel.com
To: akpm@...ux-foundation.org
Cc: rientjes@...gle.com, gregkh@...e.de, linux-kernel@...r.kernel.org,
suhail.ahmed@...el.com, christophe.guerard@...el.com,
james_p_freyensee@...ux.intel.com
Subject: [PATCH] export kernel call get_task_comm().
From: J Freyensee <james_p_freyensee@...ux.intel.com>
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@...ux.intel.com>
---
fs/exec.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/exec.c b/fs/exec.c
index 8328beb..e1ac338 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)
{
--
1.7.2.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists