v4l2-fh.h (73cb42068cff419e72456940c713ceb5efa68c2a) | v4l2-fh.h (dfddb2441f39e8c0254504516be35b854addf6fa) |
---|---|
1/* 2 * v4l2-fh.h 3 * 4 * V4L2 file handle. Store per file handle data for the V4L2 5 * framework. Using file handles is optional for the drivers. 6 * 7 * Copyright (C) 2009--2010 Nokia Corporation. 8 * --- 63 unchanged lines hidden (view full) --- 72void v4l2_fh_exit(struct v4l2_fh *fh); 73/* 74 * Can be used as the release() op of v4l2_file_operations. 75 * It deletes and exits the v4l2_fh associated with the file pointer and 76 * frees it. It will do nothing if filp->private_data (the pointer to the 77 * v4l2_fh struct) is NULL. This function always returns 0. 78 */ 79int v4l2_fh_release(struct file *filp); | 1/* 2 * v4l2-fh.h 3 * 4 * V4L2 file handle. Store per file handle data for the V4L2 5 * framework. Using file handles is optional for the drivers. 6 * 7 * Copyright (C) 2009--2010 Nokia Corporation. 8 * --- 63 unchanged lines hidden (view full) --- 72void v4l2_fh_exit(struct v4l2_fh *fh); 73/* 74 * Can be used as the release() op of v4l2_file_operations. 75 * It deletes and exits the v4l2_fh associated with the file pointer and 76 * frees it. It will do nothing if filp->private_data (the pointer to the 77 * v4l2_fh struct) is NULL. This function always returns 0. 78 */ 79int v4l2_fh_release(struct file *filp); |
80/* 81 * Returns 1 if this filehandle is the only filehandle opened for the 82 * associated video_device. If fh is NULL, then it returns 0. 83 */ 84int v4l2_fh_is_singular(struct v4l2_fh *fh); 85/* 86 * Helper function with struct file as argument. If filp->private_data is 87 * NULL, then it will return 0. 88 */ 89static inline int v4l2_fh_is_singular_file(struct file *filp) 90{ 91 return v4l2_fh_is_singular(filp->private_data); 92} |
|
80 81#endif /* V4L2_EVENT_H */ | 93 94#endif /* V4L2_EVENT_H */ |