From: "majianpeng" <majianpeng@gmail.com>
To: "viro" <viro@zeniv.linux.org.uk>
Cc: "linux-fsdevel" <linux-fsdevel@vger.kernel.org>
Subject: [PATCH] export kernel call set_task_comm()
Date: Thu, 31 May 2012 15:16:18 +0800 [thread overview]
Message-ID: <201205311516140150468@gmail.com> (raw)
In Commit 7d74f492e4dd0034a61458eb80f70b1d2862ed07,author said:
"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."
But author did not say about set_task_comm().At present,I used it but
compiled error.To the same purpose, it should export.
Signed-off-by: majianpeng <majianpeng@gmail.com>
---
fs/exec.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/exec.c b/fs/exec.c
index 52c9e2f..2b0178b 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1072,6 +1072,7 @@ void set_task_comm(struct task_struct *tsk, char *buf)
task_unlock(tsk);
perf_event_comm(tsk);
}
+EXPORT_SYMBOL_GPL(set_task_comm);
static void filename_to_taskname(char *tcomm, const char *fn, unsigned int len)
{
--
1.7.5.4
--------------
majianpeng
2012-05-31
next reply other threads:[~2012-05-31 7:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-31 7:16 majianpeng [this message]
2012-05-31 16:00 ` [PATCH] export kernel call set_task_comm() Al Viro
2012-06-01 1:15 ` majianpeng
[not found] ` <201206010911269377891@gmail.com>
2012-06-01 1:24 ` Al Viro
2012-06-01 2:13 ` majianpeng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201205311516140150468@gmail.com \
--to=majianpeng@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.