Google
  Web www.spinics.net

Re: Question on registering driver fops

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


2012/2/15 Bjørn Mork <bjorn@xxxxxxx>:
> IMPORT{program}="v4l_id $tempnode"
>
>
> So yes, looks like udev will open your device when it's plugged.
>

Thanks! I checked that and you are right. It is also possible to stop
udev service and
then insert the device. In this case, the device is not opened after
plugging it.

Looking at easycap_usb_probe() I guess we could just remove this comment
(or at least fix it) since it *not* videodev who calls easycap_open():

/*
 *  IT IS ESSENTIAL TO INITIALIZE THE HARDWARE BEFORE, RATHER THAN AFTER,
 *  THE DEVICE IS REGISTERED, BECAUSE SOME VERSIONS OF THE videodev MODULE
 *  CALL easycap_open() IMMEDIATELY AFTER REGISTRATION, CAUSING A CLASH.
 *  BEWARE.
*/

Another question: when does udev recognizes that this device was plugged?
Probably somewhere inside video_register_device(), right?

Thanks,
Ezequiel.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Newbies FAQ]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Networking]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

Add to Google Powered by Linux