# CA_SEND_MSG

_Peios Kernel / Userspace interfaces / System and device interfaces / Digital television (DVB)_

> Duplicate implicit target name: "ca_send_msg".

<a id="rst-ca-send-msg-1"></a>
<a id="rst-ca-send-msg"></a>

<!-- SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later -->

<!-- c:namespace: DTV.ca -->

<a id="rst-name"></a>

## Name

CA_SEND_MSG

<a id="rst-synopsis"></a>

## Synopsis





<a id="c-CA_SEND_MSG"></a>

```c
CA_SEND_MSG
```

`int ioctl(fd, CA_SEND_MSG, struct ca_msg *msg)`

<a id="rst-arguments"></a>

## Arguments

- **`fd`**

  File descriptor returned by a previous call to `open()`.

- **`msg`**

  Pointer to struct `ca_msg`.

<a id="rst-description"></a>

## Description

Sends a message via a CI CA module.

> [!NOTE]
>
> Please notice that, on most drivers, this is done by writing to the /dev/adapter?/ca? device node.

<a id="rst-return-value"></a>

## Return Value

On success 0 is returned.

On error -1 is returned, and the `errno` variable is set appropriately.

Generic error codes are described at the [Generic Error Codes](</kernel/userspace/userspace-api/media/gen-errors.md#rst-gen-errors-1>) chapter.
