Searched hist:dfddb2441f39e8c0254504516be35b854addf6fa (Results 1 – 1 of 1) sorted by relevance
/linux/include/media/ |
H A D | v4l2-fh.h | diff dfddb2441f39e8c0254504516be35b854addf6fa Sat Jan 08 13:38:02 CET 2011 Hans Verkuil <hverkuil@xs4all.nl> [media] v4l2-fh: add v4l2_fh_is_singular
Several drivers need to do something when the first filehandle is opened or the last filehandle is closed. Most implement some use count mechanism, but if they use v4l2_fh, then you can also just check if this is the only filehandle for the device node. A simple helper function can do this.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|