From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Mon, 28 Feb 2005 19:51:32 +0000 Subject: Re: event sequencing Message-Id: <20050228195132.GA21508@kroah.com> List-Id: References: <9e473391050225081838f673c7@mail.gmail.com> In-Reply-To: <9e473391050225081838f673c7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Sat, Feb 26, 2005 at 02:17:35PM -0500, Jon Smirl wrote: > On Sat, 26 Feb 2005 19:28:10 +0100, Kay Sievers wrote: > > Are the list and the current state available as device attributes in > > sysfs? So you may just send a KOBJ_CHANGE event for that specific > > attributes with the kobject_uevent() which can have an attribute passed > > down which is appended to the devpath of the device. > > Mode and modes are both sysfs variables so KOBJ_CHANGE should work to > send the events to hal. These are the public events that everyone > should know about. > > That leaves my private monitor change interrupt event in > kobject_hotplug(&info->class_device->kobj, KOBJ_MOUNT); It doesn't > make sense to remove/add the framebuffer device just because the > monitor attached changed. Remove/add would force X to close the > framebuffer device and lose all of the state loaded inside of it (font > cache, textures if DRM is running) . > > What about adding a few defines for KOBJ_HELPER_1, KOBJ_HELPER_2, > KOBJ_HELPER_3, etc? Wouldn't this be better than making specific > defines for private helpers like my DDC decoder? KOBJ_HELPER would be > context specific on the class of the device. No, we want you to have to justify a new KOBJ value. This ensures we don't get a lot of undocumented usages that we have to support forever without really knowing how they are being used. I have no problem with adding KOBJ_MODE_CHANGE or some such event type for this application, so don't think of it as something you will not be able to get. thanks, greg k-h ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel