linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* The use of KOBJ_NAME_LEN
@ 2007-12-04  6:45 Dave Young
  2007-12-04  6:50 ` Robert P. J. Day
  2007-12-04  7:46 ` Greg KH
  0 siblings, 2 replies; 9+ messages in thread
From: Dave Young @ 2007-12-04  6:45 UTC (permalink / raw)
  To: gregkh; +Cc: linux-kernel

Hi,
Does the KOBJ_NAME_LEN really means the limit of kobject name length? seems not . And if it's true, is the KOBJ_NAME_LEN of 20 enough to use?

In the kobject_set_name, the limit is 1024. Looks like either the comment or the code should be updated.

/**
 *      kobject_set_name - Set the name of an object
 *      @kobj:  object.
 *      @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.
 */

Regards
dave

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-12-04  8:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-04  6:45 The use of KOBJ_NAME_LEN Dave Young
2007-12-04  6:50 ` Robert P. J. Day
2007-12-04  7:17   ` Dave Young
2007-12-04  7:46   ` Greg KH
2007-12-04  8:02     ` Robert P. J. Day
2007-12-04  7:46 ` Greg KH
2007-12-04  7:53   ` Dave Young
2007-12-04  8:20     ` Greg KH
2007-12-04  8:22       ` Dave Young

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).