Hi!
> Such a device is what is needed to make the autoconfiguration of the X
> server appropriately dynamic: while we can detect if a device goes away
> by ENODEV, we need a way to know when devices appear that the X server
> should configure into itself. Polling isn't adaquate for the X server:
> we need some way to detect this cheaply.
>
> In fact, arguably, such a mechanism should be independent of bus,
> and should let applications know whenever a device comes or goes.
Well, what about have one central device "/dev/hotplug". When device
is plugged, one byte comes out of it. Everyone who cares (X, etc)
opens /dev/hotplug. When _anything_ comes, everyone wakes up, and
looks if something interesting came.
That is much cheaper than polling -- how ofter do you add devices to
your system -- and it should be easy enough to do.
Pavel
--
I'm [EMAIL PROTECTED] "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents me at [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]