public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] export kernel call get_task_comm().
@ 2011-04-22 22:26 james_p_freyensee
  2011-04-22 22:35 ` David Rientjes
  0 siblings, 1 reply; 10+ messages in thread
From: james_p_freyensee @ 2011-04-22 22:26 UTC (permalink / raw)
  To: akpm
  Cc: rientjes, gregkh, linux-kernel, suhail.ahmed, christophe.guerard,
	james_p_freyensee

From: J Freyensee <james_p_freyensee@linux.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@linux.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


^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [PATCH] export kernel call get_task_comm().
@ 2011-04-22 22:35 james_p_freyensee
  2011-04-22 22:43 ` Greg KH
  0 siblings, 1 reply; 10+ messages in thread
From: james_p_freyensee @ 2011-04-22 22:35 UTC (permalink / raw)
  To: akpm
  Cc: rientjes, gregkh, linux-kernel, suhail.ahmed, christophe.guerard,
	james_p_freyensee

From: J Freyensee <james_p_freyensee@linux.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@linux.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


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-04-22 23:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-22 22:26 [PATCH] export kernel call get_task_comm() james_p_freyensee
2011-04-22 22:35 ` David Rientjes
2011-04-22 22:43   ` J Freyensee
  -- strict thread matches above, loose matches on Subject: below --
2011-04-22 22:35 james_p_freyensee
2011-04-22 22:43 ` Greg KH
2011-04-22 22:59   ` J Freyensee
2011-04-22 23:04     ` Greg KH
2011-04-22 23:08       ` J Freyensee
2011-04-22 23:17         ` Greg KH
2011-04-22 23:19     ` David Rientjes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox