1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1. 2 .. c:namespace:: MC.request 3 4 .. _request-func-close: 5 6 *************** 7 request close() 8 *************** 9 10 Name 11 ==== 12 13 request-close - Close a request file descripto 14 15 Synopsis 16 ======== 17 18 .. code-block:: c 19 20 #include <unistd.h> 21 22 .. c:function:: int close( int fd ) 23 24 Arguments 25 ========= 26 27 ``fd`` 28 File descriptor returned by :ref:`MEDIA_IO 29 30 Description 31 =========== 32 33 Closes the request file descriptor. Resources 34 are freed once all file descriptors associated 35 and the driver has completed the request. 36 See :ref:`here <media-request-life-time>` for 37 38 Return Value 39 ============ 40 41 :c:func:`close()` returns 0 on success. On err 42 returned, and ``errno`` is set appropriately. 43 44 EBADF 45 ``fd`` is not a valid open file descriptor
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.