X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fkobject.c;h=3590f022a609cf7828c259b9485503fd3cda9683;hb=533b1928b5c37dbdaabec3e7ff073aee8d7af3eb;hp=b52e9f4ef3719f58c8217deb5e26bdfd59ebaeb9;hpb=921314811be704252ad2caa8dde507d4c421ddc4;p=linux-2.6 diff --git a/lib/kobject.c b/lib/kobject.c index b52e9f4ef3..3590f022a6 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, ...) {