CEC_ADAP_G_CAPS — Query device capabilities
|struct cec_caps *argp|
File descriptor returned by
Note: this documents the proposed CEC API. This API is not yet finalized and is currently only available as a staging kernel module.
All cec devices must support the
ioctl. To query device information, applications call the ioctl with a
pointer to a struct cec_caps. The driver fills the structure and returns
the information to the application.
The ioctl never fails.
Table M.1. struct cec_caps
|char||The name of the cec adapter driver.|
|char||The name of this CEC adapter. The combination |
|__u32||The capabilities of the CEC adapter, see Table M.2, “CEC Capabilities Flags”.|
|__u32||CEC Framework API version, formatted with the
Table M.2. CEC Capabilities Flags
|0x00000001||Userspace has to configure the physical address by
|0x00000002||Userspace has to configure the logical addresses by
|0x00000004||Userspace can transmit CEC messages by calling |
|0x00000008||Userspace can use the passthrough mode by
|0x00000010||This adapter supports the remote control protocol.|
|0x00000020||The CEC hardware can monitor all messages, not just directed and broadcast messages.|
On success 0 is returned, on error -1 and the
errno variable is set appropriately. The generic error codes are described at the Generic Error Codes chapter.