gpio-get-lineinfo-unwatch-ioctl.rst 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. .. SPDX-License-Identifier: GPL-2.0
  2. .. _GPIO_GET_LINEINFO_UNWATCH_IOCTL:
  3. *******************************
  4. GPIO_GET_LINEINFO_UNWATCH_IOCTL
  5. *******************************
  6. Name
  7. ====
  8. GPIO_GET_LINEINFO_UNWATCH_IOCTL - Disable watching a line for changes to its
  9. requested state and configuration information.
  10. Synopsis
  11. ========
  12. .. c:macro:: GPIO_GET_LINEINFO_UNWATCH_IOCTL
  13. ``int ioctl(int chip_fd, GPIO_GET_LINEINFO_UNWATCH_IOCTL, u32 *offset)``
  14. Arguments
  15. =========
  16. ``chip_fd``
  17. The file descriptor of the GPIO character device returned by `open()`.
  18. ``offset``
  19. The offset of the line to no longer watch.
  20. Description
  21. ===========
  22. Remove the line from the list of lines being watched on this ``chip_fd``.
  23. This is the reverse of gpio-v2-get-lineinfo-watch-ioctl.rst (v2) and
  24. gpio-get-lineinfo-watch-ioctl.rst (v1).
  25. Unwatching a line that is not watched is an error (**EBUSY**).
  26. First added in 5.7.
  27. Return Value
  28. ============
  29. On success 0.
  30. On error -1 and the ``errno`` variable is set appropriately.
  31. Common error codes are described in error-codes.rst.