From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: event sequencing
Date: Sat, 26 Feb 2005 19:41:16 +0000 [thread overview]
Message-ID: <1109446876.7400.112.camel@localhost.localdomain> (raw)
In-Reply-To: <9e473391050225081838f673c7@mail.gmail.com>
On Sat, 2005-02-26 at 14:17 -0500, Jon Smirl wrote:
>On Sat, 26 Feb 2005 19:28:10 +0100, Kay Sievers <kay.sievers@vrfy.org> 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 sounds good, yes.
>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) .
For exactly that reason I was asking if it wouldn't be better to create
a child for the monitor, which can appear and disappear and can hold the
DDC data you get from the physical monitor.
>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.
Hmm, I'm not sure here. Can't you add the device specific stuff to the
environment and send out KOBJ_REQUEST_DATA or something? (See below.)
>I also want to modify request_firmware() to be more general. Secondary
>video cards need to be posted before the sysfs class is created.
>request_firmware() almost does what I need. It would be more useful if
>I renamed it to request_initialization() then created two events:
>KOBJ_FIRMWARE and KOBJ_POST. Alternatively I could pass FIRMWARE or
>POST as an environment variable. The user space post program is the
>same for all video cards.
I think the request_firmware() should be redesigned in a generic
request_user_data(kobj) call. This event would copy arbitrary data into
a sysfs file and something like KOBJ_REQUEST_DATA would do it.
The call should create a file inside of a existing device and the event
handler should copy the data into this file instead of creating a own
class device for the firmware as we do today.
Kay
-------------------------------------------------------
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_id\x14396&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
next prev parent reply other threads:[~2005-02-26 19:41 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-25 16:18 event sequencing Jon Smirl
2005-02-25 16:53 ` Kay Sievers
2005-02-25 21:56 ` Jon Smirl
2005-02-26 0:16 ` Jon Smirl
2005-02-26 0:46 ` Kay Sievers
2005-02-26 1:18 ` Jon Smirl
2005-02-26 3:27 ` Greg KH
2005-02-26 3:29 ` Greg KH
2005-02-26 3:43 ` Kay Sievers
2005-02-26 3:58 ` Greg KH
2005-02-26 5:08 ` Kay Sievers
2005-02-26 5:35 ` Greg KH
2005-02-26 6:25 ` Jon Smirl
2005-02-26 13:11 ` Kay Sievers
2005-02-26 14:00 ` Kay Sievers
2005-02-26 17:34 ` Jon Smirl
2005-02-26 17:37 ` Jon Smirl
2005-02-26 18:28 ` Kay Sievers
2005-02-26 19:17 ` Jon Smirl
2005-02-26 19:41 ` Kay Sievers [this message]
2005-02-27 0:27 ` Jon Smirl
2005-02-28 4:53 ` Jon Smirl
2005-02-28 11:25 ` Kay Sievers
2005-02-28 19:07 ` Jon Smirl
2005-02-28 19:51 ` Greg KH
2005-02-28 19:52 ` Greg KH
2005-02-28 19:56 ` Greg KH
2005-02-28 21:13 ` Jon Smirl
2005-03-01 8:01 ` Greg KH
2005-03-01 8:30 ` Jon Smirl
2005-03-01 8:41 ` 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=1109446876.7400.112.camel@localhost.localdomain \
--to=kay.sievers@vrfy.org \
--cc=linux-hotplug@vger.kernel.org \
/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 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).