[RFC PATCH] Initial libudev input-hotplug support

Dan Nicholson dbn.lists at gmail.com
Mon Oct 5 12:22:40 PDT 2009


On Mon, Oct 5, 2009 at 11:13 AM, Adam Jackson <ajax at nwnk.net> wrote:
> On Tue, 2009-09-29 at 23:54 +0200, Julien Cristau wrote:
>
>> - what's the recommended way to avoid races between the 'enumerate' and
>>   'monitor' parts?
>
> I suspect the answer is "turn on monitor, then enumerate, then read plug
> events from the monitor", and no-op adding a device you've already
> added.

A while back, the udev maintainer posted a really simple monitor for
v4l events with libudev. Maybe it can answer some questions about
using the API.

http://marc.info/?l=linux-hotplug&m=124196393502336&w=2

--
Dan


More information about the xorg-devel mailing list