frontend_f_close.rst 818 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _frontend_f_close:
  3. ***************************
  4. Digital TV frontend close()
  5. ***************************
  6. Name
  7. ====
  8. fe-close - Close a frontend device
  9. Synopsis
  10. ========
  11. .. code-block:: c
  12. #include <unistd.h>
  13. .. c:function:: int close( int fd )
  14. :name: dvb-fe-close
  15. Arguments
  16. =========
  17. ``fd``
  18. File descriptor returned by :c:func:`open() <dvb-fe-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.