LWN.net Logo

kobject/hotplug split

From:  Kay Sievers <kay.sievers@vrfy.org>
To:  linux-kernel@vger.kernel.org
Subject:  [PATCH 0/6] kobject/hotplug split
Date:  Fri, 18 Mar 2005 05:00:00 +0100
Cc:  Greg KH <greg@kroah.com>

This splits the implicit generation of hotplug events from
kobject_add() and kobject_del(), to give the driver core
control over the time the event is created.

The kobject_register() and unregister functions still have the same
behavior and emit the events by themselves.

The class, block and device core is changed now to emit the hotplug
event _after_ the "dev" file, the "device" symlink and the default
attributes are created. This will save udev from spinning in a stat() loop
to wait for the files to appear, which is expensive if we have a lot of
concurrent events.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Copyright © 2005, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds