[lkml]   [2007]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC] kobject/kset/ktype documentation and example code updated
On Thu, 20 Dec 2007, Greg KH wrote:

> How about:
> - A ktype is the type of object that embeds a kobject.

if i were reading the above for the first time, i would have no idea
what was being embedded where. "embeds a kobject" where? what's
being embedded in what? that sentence doesn't make it clear. what's
the current definition for a "struct kobject"?

> Every structure that embeds a kobject needs a corresponding ktype.

and if it does, whose responsibility is it to provide one? mine?
that's not clear.

> The ktype controls what happens to the kobject when it is
> created and destroyed.

i doubt that. i wouldn't say that the ktype "controls" what happens,
i would say that it "defines" what happens. to control suggests
active participation.


Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

 \ /
  Last update: 2007-12-20 23:07    [W:0.089 / U:0.680 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site