Question on registering driver fops

Bjørn Mork bjorn at mork.no
Wed Feb 15 02:38:44 EST 2012


Ezequiel García <elezegarcia at gmail.com> writes:

> I find hard that userspace is who opens the device in this particular case,
> because I get the "open" call just by plugging in the usb, right after
> usb_probe.
> (unless there is a daemon, or udev opens the device for module
> insertion or something).

Typical V4L rules have something like this in
/lib/udev/rules.d/60-persistent-v4l.rules :

IMPORT{program}="v4l_id $tempnode"


So yes, looks like udev will open your device when it's plugged.


Bjørn



More information about the Kernelnewbies mailing list