From: Greg Kroah-Hartman <gregkh@suse.de>
To: linux-kernel@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@suse.de>,
Dave Young <hidave.darkstar@gmail.com>
Subject: [PATCH 1/7] kobject: fix the documentation of how kobject_set_name works
Date: Mon, 17 Dec 2007 12:33:17 -0800 [thread overview]
Message-ID: <1197923603-6752-1-git-send-email-gregkh@suse.de> (raw)
In-Reply-To: <20071217185654.GC4330@kroah.com>
Thanks to Dave Young <hidave.darkstar@gmail.com> for pointing out that I
forgot to update the comment when I rewrote kobject_set_name.
Cc: Dave Young <hidave.darkstar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
lib/kobject.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/lib/kobject.c b/lib/kobject.c
index b52e9f4..3590f02 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -234,13 +234,13 @@ int kobject_register(struct kobject * kobj)
/**
- * kobject_set_name - Set the name of an object
- * @kobj: object.
- * @fmt: format string used to build the name
+ * kobject_set_name - Set the name of a kobject
+ * @kobj: kobject to name
+ * @fmt: format string used to build the name
*
- * If strlen(name) >= KOBJ_NAME_LEN, then use a dynamically allocated
- * string that @kobj->k_name points to. Otherwise, use the static
- * @kobj->name array.
+ * This sets the name of the kobject. If you have already added the
+ * kobject to the system, you must call kobject_rename() in order to
+ * change the name of the kobject.
*/
int kobject_set_name(struct kobject * kobj, const char * fmt, ...)
{
--
1.5.3.7
next prev parent reply other threads:[~2007-12-17 20:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-17 18:56 [GIT PATCH] driver core and documentation fixes for 2.6.24-rc5 Greg KH
2007-12-17 20:33 ` Greg Kroah-Hartman [this message]
2007-12-17 20:33 ` [PATCH 2/7] tipar: remove obsolete module Greg Kroah-Hartman
2007-12-17 20:33 ` [PATCH 4/7] Add Documentation for FAIR_USER_SCHED sysfs files Greg Kroah-Hartman
2007-12-17 20:33 ` [PATCH 5/7] HOWTO: change addresses of maintainer and lxr url for Korean HOWTO Greg Kroah-Hartman
2007-12-17 20:33 ` [PATCH 6/7] add stable_api_nonsense.txt in korean Greg Kroah-Hartman
2007-12-17 20:33 ` [PATCH 7/7] HOWTO: update misspelling and word incorrected Greg Kroah-Hartman
2007-12-18 0:15 ` [GIT PATCH] driver core and documentation fixes for 2.6.24-rc5 Andrew Morton
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=1197923603-6752-1-git-send-email-gregkh@suse.de \
--to=gregkh@suse.de \
--cc=hidave.darkstar@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®