1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-or-later WITH no-invariant-sections
3 .. _request-func-close:
12 request-close - Close a request file descriptor
23 .. c:function:: int close( int fd )
30 File descriptor returned by :ref:`MEDIA_IOC_REQUEST_ALLOC`.
36 Closes the request file descriptor. Resources associated with the request
37 are freed once all file descriptors associated with the request are closed
38 and the driver has completed the request.
39 See :ref:`here <media-request-life-time>` for more information.
45 :ref:`close() <request-func-close>` returns 0 on success. On error, -1 is
46 returned, and ``errno`` is set appropriately. Possible error codes are:
49 ``fd`` is not a valid open file descriptor.