From: Randy Dunlap <randy.dunlap@oracle.com>
To: Greg KH <greg@kroah.com>
Cc: linux-kernel@vger.kernel.org, Kay Sievers <kay.sievers@vrfy.org>,
Alan Stern <stern@rowland.harvard.edu>,
Jonathan Corbet <corbet@lwn.net>
Subject: Re: [RFC] kobject/kset/ktype documentation and example code updated
Date: Thu, 20 Dec 2007 14:48:04 -0800 [thread overview]
Message-ID: <476AF124.6090404@oracle.com> (raw)
In-Reply-To: <20071220224258.GA16932@kroah.com>
Greg KH wrote:
> On Thu, Dec 20, 2007 at 02:29:52PM -0800, Randy Dunlap wrote:
>> On Thu, 20 Dec 2007 14:12:52 -0800 Greg KH wrote:
>>
>>> On Thu, Dec 20, 2007 at 02:06:59PM -0800, Randy Dunlap wrote:
>>>> On Thu, 20 Dec 2007 13:27:00 -0800 Greg KH wrote:
>>>>> On Wed, Dec 19, 2007 at 10:32:06PM -0800, Randy Dunlap wrote:
>>>>>> On Wed, 19 Dec 2007 16:30:31 -0800 Greg KH wrote:
>>>>>>> int kobject_uevent(struct kobject *kobj, enum kobject_action action);
>>>>>>>
>>>>>>> Use the KOBJ_ADD action for when the kobject is first added to the kernel.
>>>>>>> This should be done only after any attributes or children of the kobject
>>>>>>> have been initialized properly, as userspace will instantly start to look
>>>>>> s/will/may/
>>>>> No, it's usually a "will", as udev is damm fast these days :)
>>>> But that's the point. It assumes that udev is being used. :(
>>> Yes, kernel developers need to be aware that udev _will_ be used, you
>>> can not do things that will assume it is not running.
>> so are you saying that udev is required now?
>> I missed that information somehow/somewhere.
>
> No, not at all, it's not required.
>
> Just that if you are creating kobjects, you need to be aware that there
> are programs out there, like udev[1], that expect once the kobject is
> announced, to have all of the attributes present at the same time.
>
> Does that explain it better?
Yes. Thanks.
> thanks,
>
> greg k-h
>
> [1] There are at least 2 other programs like udev used by distros these
> days, udev is not the only player in this area anymore.
--
~Randy
next prev parent reply other threads:[~2007-12-20 22:49 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-20 0:30 [RFC] kobject/kset/ktype documentation and example code updated Greg KH
2007-12-20 0:31 ` [RFC] sample kobject implementation code Greg KH
2007-12-20 0:31 ` [RFC] sample kset/ktype/kobject " Greg KH
2008-01-03 15:14 ` Cornelia Huck
2007-12-20 4:26 ` [RFC] kobject/kset/ktype documentation and example code updated Alan Stern
2007-12-20 7:27 ` Kay Sievers
2007-12-20 21:48 ` Greg KH
2007-12-20 6:32 ` Randy Dunlap
2007-12-20 21:27 ` Greg KH
2007-12-20 22:03 ` Robert P. J. Day
2007-12-20 22:20 ` Greg KH
2007-12-20 22:06 ` Randy Dunlap
2007-12-20 22:12 ` Greg KH
2007-12-20 22:29 ` Randy Dunlap
2007-12-20 22:42 ` Greg KH
2007-12-20 22:48 ` Randy Dunlap [this message]
2007-12-20 22:57 ` Alan Stern
2007-12-20 7:54 ` Dave Young
2007-12-20 8:02 ` Greg KH
2007-12-20 9:04 ` Jan Engelhardt
2007-12-20 21:16 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=476AF124.6090404@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=corbet@lwn.net \
--cc=greg@kroah.com \
--cc=kay.sievers@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.