Skip to content

Commit

Permalink
kobject: fix the documentation of how kobject_set_name works
Browse files Browse the repository at this point in the history
Thanks to Dave Young <[email protected]> for pointing out that I
forgot to update the comment when I rewrote kobject_set_name.

Cc: Dave Young <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
gregkh committed Dec 17, 2007
1 parent da8cadb commit 8c4606b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/kobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, ...)
{
Expand Down

0 comments on commit 8c4606b

Please sign in to comment.