Re: socket and udev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 4, 2011 at 7:04 AM, Krosh Ivanov <krosh.ivan@xxxxxxxxx> wrote:
> I want to use udev to detect a storage usb disk when it is plugged.
> Since the version of udev here is v120, it is need to use sockets to
> receive messages with data about events, such as it is used in
> udevmonitor.c. However, bind function returns an error message ("bind
> failed: Address already in use") because it is used bind again in
> another process (udevd uses it first). Is there another way to get the
> events from udev?

libudev?

http://www.kernel.org/pub/linux/utils/kernel/hotplug/libudev/

I guess it's probably not available on that old udev. You could use
libhal on that system, or you could add a rule to create an AF_LOCAL
socket like was done for hal and udevmonitor:

RUN+="socket:@/your/name/here"

--
Dan
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux