Re: [RFC v2 5/7] V4L: Events: Limit event queue length

2010-01-24 Thread Sakari Ailus
Hans Verkuil wrote: Hi Sakari, Hi Hans, And thanks for the comments! ... @@ -103,7 +105,8 @@ int v4l2_event_dequeue(struct v4l2_fh *fh, struct v4l2_event *event) ev = list_first_entry(events-available, struct _v4l2_event, list); list_del(ev-list); -ev-event.count =

Re: [RFC v2 5/7] V4L: Events: Limit event queue length

2010-01-19 Thread Laurent Pinchart
Hi Hans, On Monday 18 January 2010 13:58:09 Hans Verkuil wrote: On Tue, 22 Dec 2009, Sakari Ailus wrote: Limit event queue length to V4L2_MAX_EVENTS. If the queue is full any further events will be dropped. This patch also updates the count field properly, setting it to exactly to

Re: [RFC v2 5/7] V4L: Events: Limit event queue length

2010-01-19 Thread Hans Verkuil
Hi Hans, On Monday 18 January 2010 13:58:09 Hans Verkuil wrote: On Tue, 22 Dec 2009, Sakari Ailus wrote: Limit event queue length to V4L2_MAX_EVENTS. If the queue is full any further events will be dropped. This patch also updates the count field properly, setting it to exactly to

Re: [RFC v2 5/7] V4L: Events: Limit event queue length

2010-01-18 Thread Hans Verkuil
Hi Sakari, More comments: On Tue, 22 Dec 2009, Sakari Ailus wrote: Limit event queue length to V4L2_MAX_EVENTS. If the queue is full any further events will be dropped. This patch also updates the count field properly, setting it to exactly to number of further available events.

[RFC v2 5/7] V4L: Events: Limit event queue length

2009-12-22 Thread Sakari Ailus
Limit event queue length to V4L2_MAX_EVENTS. If the queue is full any further events will be dropped. This patch also updates the count field properly, setting it to exactly to number of further available events. Signed-off-by: Sakari Ailus sakari.ai...@maxwell.research.nokia.com ---