Hi, thanks for the reply.
I have already program the v4l2 device and read the documentation that you linked.
It works most of the time but sometimes it does not. I suspect the v4l2 device opening cause I let run the fpga+sensor system and it continuoulsy acquire images. I have writting a test program that first initialize the v4l2 device, then start & stop stream during few times and repeat this action 5 times and then shutdown the v4l2 device. I repeat this actions several times and most of the time it works (I can start & stop stream multiplte times and still work) but sometimes it does not (and the multiple times I start and stop stream, it never works that's why I suspect the initialization). I have no error with ioctls that I use and I always use the same initialization.