ca-send-msg.rst 777 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _CA_SEND_MSG:
  3. ===========
  4. CA_SEND_MSG
  5. ===========
  6. Name
  7. ----
  8. CA_SEND_MSG
  9. Synopsis
  10. --------
  11. .. c:function:: int ioctl(fd, CA_SEND_MSG, struct ca_msg *msg)
  12. :name: CA_SEND_MSG
  13. Arguments
  14. ---------
  15. ``fd``
  16. File descriptor returned by a previous call to :c:func:`open() <cec-open>`.
  17. ``msg``
  18. Pointer to struct :c:type:`ca_msg`.
  19. Description
  20. -----------
  21. Sends a message via a CI CA module.
  22. .. note::
  23. Please notice that, on most drivers, this is done by writing
  24. to the /dev/adapter?/ca? device node.
  25. Return Value
  26. ------------
  27. On success 0 is returned.
  28. On error -1 is returned, and the ``errno`` variable is set
  29. appropriately.
  30. Generic error codes are described at the
  31. :ref:`Generic Error Codes <gen-errors>` chapter.