[systemd-devel] How to use libudev to monitor for /sys/firmware/iscsi_boot*?

Greg KH gregkh at linuxfoundation.org
Fri Dec 5 13:14:38 PST 2014


On Fri, Dec 05, 2014 at 11:51:16AM -0800, Lee Duncan wrote:
> Hi:
> 
> I am trying to figure out how to use libudev to monitor for new iSCSI
> boot targets.
> 
> For Emulex CNA cards, a new directory gets created of the form
> /sys/firmware/iscsi_bootN.

Really?  That's horrid, what kernel driver is doing that?

> I am new to libudev, but it looks like it's set up to monitor for new
> devices. Can I use it to monitor for non-device events? There must be
> some better way than polling.

Yes, go kick some kernel developers to do this "properly", which does
not mean using "raw" kobjects.  If you want, I will be glad to do that,
just point me at them...

thanks,

greg k-h


More information about the systemd-devel mailing list