Am Freitag, 7. Dezember 2001 17:47 schrieb Pavel Machek:
> Hi!
>
> > in your open method:
> >
> > You try to ensure exclusive open, v4l will do this on its own.
> > You increase the module use count after down(). That's a race.
> > Better use the owner field to make v4l manage this for you.
>
> How do I do this? I killed the race for now.
In your struct video_device you add a line like:
owner : THIS_MODULE;
then this code (and other parts):
if(vfl->owner)
__MOD_INC_USE_COUNT(vfl->owner);
from videodev.c will take care of the module usage count, except in probe()
and disconnect().
HTH
Oliver
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel