mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-05 04:04:01 +08:00
937e68053d
Sphinx 3.x broke support for the cdomain.py extension, as the c domain code was rewritten. Due to that, the c tags need to be re-written, in order to use the new c domain notation. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
46 lines
918 B
ReStructuredText
46 lines
918 B
ReStructuredText
.. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
|
|
.. c:namespace:: MC.request
|
|
|
|
.. _request-func-close:
|
|
|
|
***************
|
|
request close()
|
|
***************
|
|
|
|
Name
|
|
====
|
|
|
|
request-close - Close a request file descriptor
|
|
|
|
Synopsis
|
|
========
|
|
|
|
.. code-block:: c
|
|
|
|
#include <unistd.h>
|
|
|
|
.. c:function:: int close( int fd )
|
|
|
|
Arguments
|
|
=========
|
|
|
|
``fd``
|
|
File descriptor returned by :ref:`MEDIA_IOC_REQUEST_ALLOC`.
|
|
|
|
Description
|
|
===========
|
|
|
|
Closes the request file descriptor. Resources associated with the request
|
|
are freed once all file descriptors associated with the request are closed
|
|
and the driver has completed the request.
|
|
See :ref:`here <media-request-life-time>` for more information.
|
|
|
|
Return Value
|
|
============
|
|
|
|
:c:func:`close()` returns 0 on success. On error, -1 is
|
|
returned, and ``errno`` is set appropriately. Possible error codes are:
|
|
|
|
EBADF
|
|
``fd`` is not a valid open file descriptor.
|