On Wed, Nov 12, 2025 at 5:42 PM Philippe Mathieu-Daudé <[email protected]>
wrote:

> Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
>

Reviewed-by: Marc-André Lureau <[email protected]>


> ---
>  include/chardev/char-io.h | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)
>
> diff --git a/include/chardev/char-io.h b/include/chardev/char-io.h
> index ac379ea70e3..5b181be6a0b 100644
> --- a/include/chardev/char-io.h
> +++ b/include/chardev/char-io.h
> @@ -38,8 +38,28 @@ GSource *io_add_watch_poll(Chardev *chr,
>
>  void remove_fd_in_watch(Chardev *chr);
>
> +/**
> + * io_channel_send:
> + * @ioc: the IO channel object
> + * @buf: the data
> + * @len: the number of bytes to send
> + *
> + * Returns: the number of bytes consumed or -1 on error.
> + * On error, %errno is also set as appropriate.
> + */
>  int io_channel_send(QIOChannel *ioc, const void *buf, size_t len);
>
> +/**
> + * io_channel_send_full:
> + * @ioc: the IO channel object
> + * @buf: the data
> + * @len: the number of bytes to send
> + * @fds: an array of file handles to send
> + * @nfds: number of file handles in @fds
> + *
> + * Returns: the number of bytes consumed or -1 on error.
> + * On error, %errno is also set as appropriate.
> + */
>  int io_channel_send_full(QIOChannel *ioc, const void *buf, size_t len,
>                           int *fds, size_t nfds);
>
> --
> 2.51.0
>
>

Reply via email to