Re: [ANNOUNCE] udev 0.1 release

David Brownell
2003-04-19T04:59:30Z

Andrew Morton wrote:
> Steven Dake <sdake@mvista.com> wrote:
>
>>A much better solution could be had by select()ing on a filehandle
>>indicating when a new hotswap event is ready to be processed. No races,
>>no security issues, no performance issues.
>
>
> I must say that I've always felt this to be a better approach than the
> /sbin/hotplug callout.

Better in some environments, not all. It's a tradeoff.

Me, I'd far rather allocate those hotplug resources on demand
than pre-allocate them into Yet Another Daemon. For bounded
response-time systems, or for systems that are generating huge
event streams, I'd likely want more control though.

> Apart from the performance issue, it means that the kernel can buffer the
> "insertion" events which happen at boot-time discovery until the userspace
> handler attaches itself.

It could do that regardless of whether the event is eventually
delivered through some socket or by spawning a new process.

The way hotplug events are handled after some subsystem decides
to send them isn't written in stone. They've been asynchronous
all through the 2.4 series, so queueing is semantically OK.

- Dave