1 .. -*- coding: utf-8; mode: rst -*-
12 v4l2-close - Close a V4L2 device
23 .. c:function:: int close( int fd )
30 File descriptor returned by :ref:`open() <func-open>`.
36 Closes the device. Any I/O in progress is terminated and resources
37 associated with the file descriptor are freed. However data format
38 parameters, current input or output, control values or other properties
45 The function returns 0 on success, -1 on failure and the ``errno`` is
46 set appropriately. Possible error codes:
49 ``fd`` is not a valid open file descriptor.