Alle 18:44, venerdì 9 febbraio 2007, Laurent Pinchart ha scritto:
> Thanks for pointing this out. Out of curiosity, do you have any idea why 
> PROT_WRITE is required for video acquisition mappings ? Without PROT_WRITE, 
> user space applications can't write to the buffer. I haven't been able to 
> find any other implication.

Consistency is one reason why PROT_WRITE is required. The access mode
to the device is always RW regardless of the type of device, open() flags
must be set to O_RDRW, so both PROT_READ and PROT_WRITE must
be passed to mmap().

Best regards
Luca Risolia
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to