p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.217.13
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/modules/3.10.0-1160.105.1.el7.x86_64/build/include/media/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /usr/lib/modules/3.10.0-1160.105.1.el7.x86_64/build/include/media/v4l2-event.h
/*
 * v4l2-event.h
 *
 * V4L2 events.
 *
 * Copyright (C) 2009--2010 Nokia Corporation.
 *
 * Contact: Sakari Ailus <sakari.ailus@iki.fi>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA
 */

#ifndef V4L2_EVENT_H
#define V4L2_EVENT_H

#include <linux/types.h>
#include <linux/videodev2.h>
#include <linux/wait.h>

/*
 * Overview:
 *
 * Events are subscribed per-filehandle. An event specification consists of a
 * type and is optionally associated with an object identified through the
 * 'id' field. So an event is uniquely identified by the (type, id) tuple.
 *
 * The v4l2-fh struct has a list of subscribed events. The v4l2_subscribed_event
 * struct is added to that list, one for every subscribed event.
 *
 * Each v4l2_subscribed_event struct ends with an array of v4l2_kevent structs.
 * This array (ringbuffer, really) is used to store any events raised by the
 * driver. The v4l2_kevent struct links into the 'available' list of the
 * v4l2_fh struct so VIDIOC_DQEVENT will know which event to dequeue first.
 *
 * Finally, if the event subscription is associated with a particular object
 * such as a V4L2 control, then that object needs to know about that as well
 * so that an event can be raised by that object. So the 'node' field can
 * be used to link the v4l2_subscribed_event struct into a list of that
 * object.
 *
 * So to summarize:
 *
 * struct v4l2_fh has two lists: one of the subscribed events, and one of the
 * pending events.
 *
 * struct v4l2_subscribed_event has a ringbuffer of raised (pending) events of
 * that particular type.
 *
 * If struct v4l2_subscribed_event is associated with a specific object, then
 * that object will have an internal list of struct v4l2_subscribed_event so
 * it knows who subscribed an event to that object.
 */

struct v4l2_fh;
struct v4l2_subdev;
struct v4l2_subscribed_event;
struct video_device;

/** struct v4l2_kevent - Internal kernel event struct.
  * @list:	List node for the v4l2_fh->available list.
  * @sev:	Pointer to parent v4l2_subscribed_event.
  * @event:	The event itself.
  */
struct v4l2_kevent {
	struct list_head	list;
	struct v4l2_subscribed_event *sev;
	struct v4l2_event	event;
};

/** struct v4l2_subscribed_event_ops - Subscribed event operations.
  * @add:	Optional callback, called when a new listener is added
  * @del:	Optional callback, called when a listener stops listening
  * @replace:	Optional callback that can replace event 'old' with event 'new'.
  * @merge:	Optional callback that can merge event 'old' into event 'new'.
  */
struct v4l2_subscribed_event_ops {
	int  (*add)(struct v4l2_subscribed_event *sev, unsigned elems);
	void (*del)(struct v4l2_subscribed_event *sev);
	void (*replace)(struct v4l2_event *old, const struct v4l2_event *new);
	void (*merge)(const struct v4l2_event *old, struct v4l2_event *new);
};

/** struct v4l2_subscribed_event - Internal struct representing a subscribed event.
  * @list:	List node for the v4l2_fh->subscribed list.
  * @type:	Event type.
  * @id:	Associated object ID (e.g. control ID). 0 if there isn't any.
  * @flags:	Copy of v4l2_event_subscription->flags.
  * @fh:	Filehandle that subscribed to this event.
  * @node:	List node that hooks into the object's event list (if there is one).
  * @ops:	v4l2_subscribed_event_ops
  * @elems:	The number of elements in the events array.
  * @first:	The index of the events containing the oldest available event.
  * @in_use:	The number of queued events.
  * @events:	An array of @elems events.
  */
struct v4l2_subscribed_event {
	struct list_head	list;
	u32			type;
	u32			id;
	u32			flags;
	struct v4l2_fh		*fh;
	struct list_head	node;
	const struct v4l2_subscribed_event_ops *ops;
	unsigned		elems;
	unsigned		first;
	unsigned		in_use;
	struct v4l2_kevent	events[];
};

int v4l2_event_dequeue(struct v4l2_fh *fh, struct v4l2_event *event,
		       int nonblocking);
void v4l2_event_queue(struct video_device *vdev, const struct v4l2_event *ev);
void v4l2_event_queue_fh(struct v4l2_fh *fh, const struct v4l2_event *ev);
int v4l2_event_pending(struct v4l2_fh *fh);
int v4l2_event_subscribe(struct v4l2_fh *fh,
			 const struct v4l2_event_subscription *sub, unsigned elems,
			 const struct v4l2_subscribed_event_ops *ops);
int v4l2_event_unsubscribe(struct v4l2_fh *fh,
			   const struct v4l2_event_subscription *sub);
void v4l2_event_unsubscribe_all(struct v4l2_fh *fh);
int v4l2_event_subdev_unsubscribe(struct v4l2_subdev *sd, struct v4l2_fh *fh,
				  struct v4l2_event_subscription *sub);
#endif /* V4L2_EVENT_H */
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
January 19 2024 08:12:51
0 / 0
0755
blackfin
--
January 19 2024 08:12:51
0 / 0
0755
davinci
--
January 19 2024 08:12:51
0 / 0
0755
ad9389b.h
1.405 KB
November 06 2023 09:15:52
0 / 0
0644
adp1653.h
4.134 KB
November 06 2023 09:15:52
0 / 0
0644
adv7183.h
1.765 KB
November 06 2023 09:15:52
0 / 0
0644
adv7343.h
2.184 KB
November 06 2023 09:15:52
0 / 0
0644
adv7393.h
0.862 KB
November 06 2023 09:15:52
0 / 0
0644
adv7604.h
4.42 KB
November 06 2023 09:15:52
0 / 0
0644
ak881x.h
0.649 KB
November 06 2023 09:15:52
0 / 0
0644
as3645a.h
2.352 KB
November 06 2023 09:15:52
0 / 0
0644
atmel-isi.h
3.561 KB
November 06 2023 09:15:52
0 / 0
0644
bt819.h
1.146 KB
November 06 2023 09:15:52
0 / 0
0644
cec-notifier.h
4.191 KB
November 06 2023 09:15:52
0 / 0
0644
cec.h
12.034 KB
November 06 2023 09:15:52
0 / 0
0644
cs5345.h
1.182 KB
November 06 2023 09:15:52
0 / 0
0644
cs53l32a.h
1.168 KB
November 06 2023 09:15:52
0 / 0
0644
cx2341x.h
9.777 KB
November 06 2023 09:15:52
0 / 0
0644
cx25840.h
5.383 KB
November 06 2023 09:15:52
0 / 0
0644
gpio-ir-recv.h
0.716 KB
November 06 2023 09:15:52
0 / 0
0644
i2c-addr.h
1.177 KB
November 06 2023 09:15:52
0 / 0
0644
ir-kbd-i2c.h
1.192 KB
November 06 2023 09:15:52
0 / 0
0644
ir-rx51.h
0.159 KB
November 06 2023 09:15:52
0 / 0
0644
lirc.h
6.268 KB
November 06 2023 09:15:52
0 / 0
0644
lirc_dev.h
5.659 KB
November 06 2023 09:15:52
0 / 0
0644
m52790.h
2.721 KB
November 06 2023 09:15:52
0 / 0
0644
m5mols.h
1.052 KB
November 06 2023 09:15:52
0 / 0
0644
media-device.h
2.927 KB
November 06 2023 09:15:52
0 / 0
0644
media-devnode.h
2.938 KB
November 06 2023 09:15:52
0 / 0
0644
media-entity.h
4.681 KB
November 06 2023 09:15:52
0 / 0
0644
mmp-camera.h
0.175 KB
November 06 2023 09:15:52
0 / 0
0644
msp3400.h
8.286 KB
November 06 2023 09:15:52
0 / 0
0644
mt9m032.h
1.061 KB
November 06 2023 09:15:52
0 / 0
0644
mt9p031.h
0.326 KB
November 06 2023 09:15:52
0 / 0
0644
mt9t001.h
0.138 KB
November 06 2023 09:15:52
0 / 0
0644
mt9t112.h
0.674 KB
November 06 2023 09:15:52
0 / 0
0644
mt9v011.h
0.375 KB
November 06 2023 09:15:52
0 / 0
0644
mt9v022.h
0.354 KB
November 06 2023 09:15:52
0 / 0
0644
mt9v032.h
0.246 KB
November 06 2023 09:15:52
0 / 0
0644
noon010pc30.h
0.71 KB
November 06 2023 09:15:52
0 / 0
0644
omap1_camera.h
0.859 KB
November 06 2023 09:15:52
0 / 0
0644
omap3isp.h
4.285 KB
November 06 2023 09:15:52
0 / 0
0644
ov7670.h
0.601 KB
November 06 2023 09:15:52
0 / 0
0644
ov772x.h
1.396 KB
November 06 2023 09:15:52
0 / 0
0644
ov9650.h
0.854 KB
November 06 2023 09:15:52
0 / 0
0644
radio-si4713.h
0.668 KB
November 06 2023 09:15:52
0 / 0
0644
rc-core.h
7.538 KB
November 06 2023 09:15:52
0 / 0
0644
rc-map.h
9.161 KB
November 06 2023 09:15:52
0 / 0
0644
rj54n1cb0c.h
0.415 KB
November 06 2023 09:15:52
0 / 0
0644
s3c_camif.h
1.289 KB
November 06 2023 09:15:52
0 / 0
0644
s5c73m3.h
1.545 KB
November 06 2023 09:15:52
0 / 0
0644
s5k4ecgx.h
0.871 KB
November 06 2023 09:15:52
0 / 0
0644
s5k6aa.h
1.403 KB
November 06 2023 09:15:52
0 / 0
0644
s5p_fimc.h
5.022 KB
November 06 2023 09:15:52
0 / 0
0644
s5p_hdmi.h
0.962 KB
November 06 2023 09:15:52
0 / 0
0644
saa6588.h
1.296 KB
November 06 2023 09:15:52
0 / 0
0644
saa6752hs.h
0.866 KB
November 06 2023 09:15:52
0 / 0
0644
saa7115.h
2.417 KB
November 06 2023 09:15:52
0 / 0
0644
saa7127.h
1.242 KB
November 06 2023 09:15:52
0 / 0
0644
saa7146.h
17.499 KB
November 06 2023 09:15:52
0 / 0
0644
saa7146_vv.h
7.479 KB
November 06 2023 09:15:52
0 / 0
0644
sh_mobile_ceu.h
0.709 KB
November 06 2023 09:15:52
0 / 0
0644
sh_mobile_csi2.h
0.94 KB
November 06 2023 09:15:52
0 / 0
0644
sh_vou.h
0.699 KB
November 06 2023 09:15:52
0 / 0
0644
si4713.h
1.372 KB
November 06 2023 09:15:52
0 / 0
0644
si476x.h
1.232 KB
November 06 2023 09:15:52
0 / 0
0644
sii9234.h
0.576 KB
November 06 2023 09:15:52
0 / 0
0644
smiapp.h
2.473 KB
November 06 2023 09:15:52
0 / 0
0644
soc_camera.h
12.197 KB
November 06 2023 09:15:52
0 / 0
0644
soc_camera_platform.h
1.928 KB
November 06 2023 09:15:52
0 / 0
0644
soc_mediabus.h
3.564 KB
November 06 2023 09:15:52
0 / 0
0644
sr030pc30.h
0.613 KB
November 06 2023 09:15:52
0 / 0
0644
ths7303.h
1.231 KB
November 06 2023 09:15:52
0 / 0
0644
timb_radio.h
0.971 KB
November 06 2023 09:15:52
0 / 0
0644
timb_video.h
1.01 KB
November 06 2023 09:15:52
0 / 0
0644
tuner-types.h
4.589 KB
November 06 2023 09:15:52
0 / 0
0644
tuner.h
7.64 KB
November 06 2023 09:15:52
0 / 0
0644
tvaudio.h
1.393 KB
November 06 2023 09:15:52
0 / 0
0644
tveeprom.h
0.809 KB
November 06 2023 09:15:52
0 / 0
0644
tvp514x.h
2.758 KB
November 06 2023 09:15:52
0 / 0
0644
tvp5150.h
1.04 KB
November 06 2023 09:15:52
0 / 0
0644
tvp7002.h
1.927 KB
November 06 2023 09:15:52
0 / 0
0644
tw9910.h
0.766 KB
November 06 2023 09:15:52
0 / 0
0644
uda1342.h
0.938 KB
November 06 2023 09:15:52
0 / 0
0644
upd64031a.h
1.324 KB
November 06 2023 09:15:52
0 / 0
0644
upd64083.h
2.233 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-chip-ident.h
9.518 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-common.h
8.094 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-ctrls.h
26.854 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-dev.h
7.441 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-device.h
7.399 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-event.h
5.005 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-fh.h
3.259 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-image-sizes.h
0.702 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-int-device.h
7.663 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-ioctl.h
12.512 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-mediabus.h
3.507 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-mem2mem.h
6.495 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-of.h
2.073 KB
November 06 2023 09:15:52
0 / 0
0644
v4l2-subdev.h
26.723 KB
November 06 2023 09:15:52
0 / 0
0644
videobuf-core.h
6.99 KB
November 06 2023 09:15:52
0 / 0
0644
videobuf-dma-contig.h
1.037 KB
November 06 2023 09:15:52
0 / 0
0644
videobuf-dma-sg.h
3.285 KB
November 06 2023 09:15:52
0 / 0
0644
videobuf-dvb.h
1.721 KB
November 06 2023 09:15:52
0 / 0
0644
videobuf-vmalloc.h
1.291 KB
November 06 2023 09:15:52
0 / 0
0644
videobuf2-core.h
19.184 KB
November 06 2023 09:15:52
0 / 0
0644
videobuf2-dma-contig.h
0.812 KB
November 06 2023 09:15:52
0 / 0
0644
videobuf2-dma-sg.h
0.797 KB
November 06 2023 09:15:52
0 / 0
0644
videobuf2-memops.h
1.102 KB
November 06 2023 09:15:52
0 / 0
0644
videobuf2-vmalloc.h
0.497 KB
November 06 2023 09:15:52
0 / 0
0644
wm8775.h
1.358 KB
November 06 2023 09:15:52
0 / 0
0644