v4l2-fh.h (c13aca79ff3c4af5fd31a5b2743a90eba6e36a26) v4l2-fh.h (ad608fbcf166fec809e402d548761768f602702c)
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 *

--- 24 unchanged lines hidden (view full) ---

33 * struct v4l2_fh - Describes a V4L2 file handler
34 *
35 * @list: list of file handlers
36 * @vdev: pointer to &struct video_device
37 * @ctrl_handler: pointer to &struct v4l2_ctrl_handler
38 * @prio: priority of the file handler, as defined by &enum v4l2_priority
39 *
40 * @wait: event' s wait queue
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 *

--- 24 unchanged lines hidden (view full) ---

33 * struct v4l2_fh - Describes a V4L2 file handler
34 *
35 * @list: list of file handlers
36 * @vdev: pointer to &struct video_device
37 * @ctrl_handler: pointer to &struct v4l2_ctrl_handler
38 * @prio: priority of the file handler, as defined by &enum v4l2_priority
39 *
40 * @wait: event' s wait queue
41 * @subscribe_lock: serialise changes to the subscribed list; guarantee that
42 * the add and del event callbacks are orderly called
41 * @subscribed: list of subscribed events
42 * @available: list of events waiting to be dequeued
43 * @navailable: number of available events at @available list
44 * @sequence: event sequence number
43 * @subscribed: list of subscribed events
44 * @available: list of events waiting to be dequeued
45 * @navailable: number of available events at @available list
46 * @sequence: event sequence number
47 *
45 * @m2m_ctx: pointer to &struct v4l2_m2m_ctx
46 */
47struct v4l2_fh {
48 struct list_head list;
49 struct video_device *vdev;
50 struct v4l2_ctrl_handler *ctrl_handler;
51 enum v4l2_priority prio;
52
53 /* Events */
54 wait_queue_head_t wait;
48 * @m2m_ctx: pointer to &struct v4l2_m2m_ctx
49 */
50struct v4l2_fh {
51 struct list_head list;
52 struct video_device *vdev;
53 struct v4l2_ctrl_handler *ctrl_handler;
54 enum v4l2_priority prio;
55
56 /* Events */
57 wait_queue_head_t wait;
58 struct mutex subscribe_lock;
55 struct list_head subscribed;
56 struct list_head available;
57 unsigned int navailable;
58 u32 sequence;
59
60#if IS_ENABLED(CONFIG_V4L2_MEM2MEM_DEV)
61 struct v4l2_m2m_ctx *m2m_ctx;
62#endif

--- 105 unchanged lines hidden ---
59 struct list_head subscribed;
60 struct list_head available;
61 unsigned int navailable;
62 u32 sequence;
63
64#if IS_ENABLED(CONFIG_V4L2_MEM2MEM_DEV)
65 struct v4l2_m2m_ctx *m2m_ctx;
66#endif

--- 105 unchanged lines hidden ---