Lines Matching refs:v4l2_fh
75 and the v4l2_fh struct keeps track of filehandle instances.
923 struct v4l2_fh
926 struct v4l2_fh provides a way to easily keep file handle specific data
927 that is used by the V4L2 framework. New drivers must use struct v4l2_fh
930 The users of v4l2_fh (in the V4L2 framework, not the driver) know
931 whether a driver uses v4l2_fh as its file->private_data pointer by
935 struct v4l2_fh is allocated as a part of the driver's own file handle
939 In many cases the struct v4l2_fh will be embedded in a larger structure.
948 struct v4l2_fh fh;
976 struct v4l2_fh *fh = file->private_data;
986 Below is a short description of the v4l2_fh functions used:
988 void v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev)
993 void v4l2_fh_add(struct v4l2_fh *fh)
995 Add a v4l2_fh to video_device file handle list. Must be called once the
998 void v4l2_fh_del(struct v4l2_fh *fh)
1003 void v4l2_fh_exit(struct v4l2_fh *fh)
1005 Uninitialise the file handle. After uninitialisation the v4l2_fh
1009 If struct v4l2_fh is not embedded, then you can use these helper functions:
1013 This allocates a struct v4l2_fh, initializes it and adds it to the struct
1019 struct, uninitialised the v4l2_fh and frees it.
1027 whether the v4l2_fh struct is the only open filehandle of the associated
1030 int v4l2_fh_is_singular(struct v4l2_fh *fh)
1043 The driver must use v4l2_fh to be able to support V4L2 events.
1084 int v4l2_event_subscribe(struct v4l2_fh *fh,
1105 int v4l2_event_unsubscribe(struct v4l2_fh *fh,
1115 int v4l2_event_pending(struct v4l2_fh *fh)
1120 can use v4l2_fh->wait (a wait_queue_head_t) as the argument for poll_wait().