提交 8c4606b1 编写于 作者: G Greg Kroah-Hartman

kobject: fix the documentation of how kobject_set_name works

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: NGreg Kroah-Hartman <gregkh@suse.de>
上级 da8cadb3
...@@ -234,13 +234,13 @@ int kobject_register(struct kobject * kobj) ...@@ -234,13 +234,13 @@ int kobject_register(struct kobject * kobj)
/** /**
* kobject_set_name - Set the name of an object * kobject_set_name - Set the name of a kobject
* @kobj: object. * @kobj: kobject to name
* @fmt: format string used to build the name * @fmt: format string used to build the name
* *
* If strlen(name) >= KOBJ_NAME_LEN, then use a dynamically allocated * This sets the name of the kobject. If you have already added the
* string that @kobj->k_name points to. Otherwise, use the static * kobject to the system, you must call kobject_rename() in order to
* @kobj->name array. * change the name of the kobject.
*/ */
int kobject_set_name(struct kobject * kobj, const char * fmt, ...) int kobject_set_name(struct kobject * kobj, const char * fmt, ...)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册