ca-send-msg.rst 802 B

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