frontend_f_close.rst 824 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
  2. .. c:namespace:: DTV.fe
  3. .. _frontend_f_close:
  4. ***************************
  5. Digital TV frontend close()
  6. ***************************
  7. Name
  8. ====
  9. fe-close - Close a frontend device
  10. Synopsis
  11. ========
  12. .. code-block:: c
  13. #include <unistd.h>
  14. .. c:function:: int close( int fd )
  15. Arguments
  16. =========
  17. ``fd``
  18. File descriptor returned by :c:func:`open()`.
  19. Description
  20. ===========
  21. This system call closes a previously opened front-end device. After
  22. closing a front-end device, its corresponding hardware might be powered
  23. down automatically.
  24. Return Value
  25. ============
  26. On success 0 is returned.
  27. On error -1 is returned, and the ``errno`` variable is set
  28. appropriately.
  29. Generic error codes are described at the
  30. :ref:`Generic Error Codes <gen-errors>` chapter.