Return-path: Received: from mga11.intel.com ([192.55.52.93]:5228 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756459AbcEXQvD (ORCPT ); Tue, 24 May 2016 12:51:03 -0400 From: Sakari Ailus To: linux-media@vger.kernel.org Cc: laurent.pinchart@ideasonboard.com, hverkuil@xs4all.nl, mchehab@osg.samsung.com Subject: [RFC v2 20/21] DocBook: media: Document media events (MEDIA_IOC_DQEVENT IOCTL) Date: Tue, 24 May 2016 19:47:30 +0300 Message-Id: <1464108451-28142-21-git-send-email-sakari.ailus@linux.intel.com> In-Reply-To: <1464108451-28142-1-git-send-email-sakari.ailus@linux.intel.com> References: <1464108451-28142-1-git-send-email-sakari.ailus@linux.intel.com> Sender: linux-media-owner@vger.kernel.org List-ID: Add DocBook documentation for media events. Signed-off-by: Sakari Ailus --- .../DocBook/media/v4l/media-controller.xml | 1 + .../DocBook/media/v4l/media-ioc-dqevent.xml | 156 +++++++++++++++++++++ 2 files changed, 157 insertions(+) create mode 100644 Documentation/DocBook/media/v4l/media-ioc-dqevent.xml diff --git a/Documentation/DocBook/media/v4l/media-controller.xml b/Documentation/DocBook/media/v4l/media-controller.xml index 2a5a5d0..aa78fcb 100644 --- a/Documentation/DocBook/media/v4l/media-controller.xml +++ b/Documentation/DocBook/media/v4l/media-controller.xml @@ -98,6 +98,7 @@ &sub-media-func-ioctl; &sub-media-ioc-device-info; + &sub-media-ioc-dqevent; &sub-media-ioc-g-topology; &sub-media-ioc-enum-entities; &sub-media-ioc-enum-links; diff --git a/Documentation/DocBook/media/v4l/media-ioc-dqevent.xml b/Documentation/DocBook/media/v4l/media-ioc-dqevent.xml new file mode 100644 index 0000000..8cf0462 --- /dev/null +++ b/Documentation/DocBook/media/v4l/media-ioc-dqevent.xml @@ -0,0 +1,156 @@ + + + ioctl MEDIA_IOC_DQEVENT + &manvol; + + + + MEDIA_IOC_DQEVENT + Dequeue a media event + + + + + + int ioctl + int fd + int request + struct media_event *argp + + + + + + Arguments + + + + fd + + File descriptor returned by + open(). + + + + request + + MEDIA_IOC_DQEVENT + + + + argp + + + + + + + + + Description + + Dequeue a media event from a media device. Both non-blocking + and blocking access is supported. poll(2) + IOCTL may be used with poll event type + POLLPRI to learn about dequeueable + events. + + Media events are specific to file handle: they are delivered + to and dequeued from each file handle separately. + + + struct <structname>media_event</structname> + + &cs-str; + + + __u32 + type + + Type of the media event. Set by the driver. See + for available media + event types. + + + __u32 + sequence + + Event sequence number. The sequence number is file + handle specific and counts from zero until it wraps around + after reaching 32^2-1. + + + __u32 + reserved[4] + Reserved for future extensions. Applications and + drivers must set this to zero. + + + union + + + Anonymous union for event type specific data. + + + + struct &media_event_request_complete; + req_complete + Event data for + MEDIA_EVENT_REQUEST_COMPLETE event. + + + + +
+ + + Media event types + + &cs-def; + + + MEDIA_EVENT_REQUEST_COMPLETE + 1 + A request has been completed. This media event type + has &media-event-request-complete; associated with it. The +yes + event is only queued to the file handle from which the + event was queued. + + + + +
+ + + struct <structname>media_event_request_complete</structname> + + &cs-str; + + + __u32 + id + Request ID. The identifier of the request which has + been completed. + + + +
+ +
+ + + &return-value; + + + + ENOENT + + No events are available for dequeueing. This is returned + only when non-blocking I/O is used. + + + + + +
-- 1.9.1