[libvirt] A first look at the node device libudev backend

Dave Allan dallan at redhat.com
Mon Oct 5 15:21:05 UTC 2009


Hi all,

Here is a first cut at the node device backend.  The only devices 
implemented are part of storage and PCI devices, but it's conceptually 
finished.  The remaining work is implementing the other device 
properties and types.  Before I go do that, I'd like to get feedback on 
my approach.  Since libudev doesn't have the concept of capabilities the 
way HAL does, Chris Lalancette and I thought it made more sense and 
rendered much more readable code to implement each device type in a 
single function and avoid the indirection created by the caps_tbl 
structure containing a function pointer.

Monitoring of libudev for new devices is not implemented, but I'm not 
too concerned about that at this point.  As Dan Berrange suggested on 
IRC, putting a call in the main loop to poll the monitor file descriptor 
will do the job.

Dave
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-A-first-look-at-the-libudev-node-device-backend.patch
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20091005/6f10d2af/attachment-0001.ksh>


More information about the libvir-list mailing list