1 .. -*- coding: utf-8; mode: rst -*-
22 .. cpp:function:: int close( int fd )
28 File descriptor returned by :ref:`open() <func-open>`.
34 Closes the device. Any I/O in progress is terminated and resources
35 associated with the file descriptor are freed. However data format
36 parameters, current input or output, control values or other properties
43 The function returns 0 on success, -1 on failure and the ``errno`` is
44 set appropriately. Possible error codes:
47 ``fd`` is not a valid open file descriptor.
50 .. ------------------------------------------------------------------------------
51 .. This file was automatically converted from DocBook-XML with the dbxml
52 .. library (https://github.com/return42/sphkerneldoc). The origin XML comes
53 .. from the linux kernel, refer to:
55 .. * https://github.com/torvalds/linux/tree/master/Documentation/DocBook
56 .. ------------------------------------------------------------------------------