X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=Documentation%2Fkobject.txt;h=c79ab996dadaea7a6e630fd9326c6a1b5adfd86e;hb=69050eee8e08a6234f29fe71a56f8c7c7d4d7186;hp=f5d2aad65a672ce65082769b835d621bac11e59a;hpb=ef71b1b87521ff93ed77b3e8f3e149afb392761c;p=sfrench%2Fcifs-2.6.git diff --git a/Documentation/kobject.txt b/Documentation/kobject.txt index f5d2aad65a67..c79ab996dada 100644 --- a/Documentation/kobject.txt +++ b/Documentation/kobject.txt @@ -118,8 +118,8 @@ the name of the kobject, call kobject_rename(): int kobject_rename(struct kobject *kobj, const char *new_name); -Note kobject_rename does perform any locking or have a solid notion of -what names are valid so the provide must provide their own sanity checking +kobject_rename does not perform any locking or have a solid notion of +what names are valid so the caller must provide their own sanity checking and serialization. There is a function called kobject_set_name() but that is legacy cruft and @@ -132,7 +132,7 @@ kobject_name(): const char *kobject_name(const struct kobject * kobj); There is a helper function to both initialize and add the kobject to the -kernel at the same time, called supprisingly enough kobject_init_and_add(): +kernel at the same time, called surprisingly enough kobject_init_and_add(): int kobject_init_and_add(struct kobject *kobj, struct kobj_type *ktype, struct kobject *parent, const char *fmt, ...);