Re: The use of KOBJ_NAME_LEN

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Greg KH
Date: Tuesday, December 4, 2007 - 12:46 am

On Tue, Dec 04, 2007 at 02:45:47PM +0800, Dave Young wrote:

No, not anymore, the kobject name is totally dynamic.


Here's a patch below for the comment updating it.

I also have a patch in my -mm series that takes away the 1024 character
limit, but for 2.6.24 we'll have to live with it :)

thanks,

greg k-h


---
 lib/kobject.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -234,13 +234,13 @@ int kobject_register(struct kobject * ko
 
 
 /**
- *	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, ...)
 {
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: The use of KOBJ_NAME_LEN, Robert P. J. Day, (Mon Dec 3, 11:50 pm)
Re: The use of KOBJ_NAME_LEN, Greg KH, (Tue Dec 4, 12:46 am)
Re: The use of KOBJ_NAME_LEN, Greg KH, (Tue Dec 4, 12:46 am)
Re: The use of KOBJ_NAME_LEN, Robert P. J. Day, (Tue Dec 4, 1:02 am)
Re: The use of KOBJ_NAME_LEN, Greg KH, (Tue Dec 4, 1:20 am)
Re: The use of KOBJ_NAME_LEN, Dave Young, (Tue Dec 4, 1:22 am)