跳转到主要内容

sd_varlink_send

systemd

3

#include <systemd/sd-varlink.h>

int

const char *

method

sd_json_variant *

parameters

int

const char *

method

…

int

const char *

method

…

Description

Return Value

On success, sd_varlink_send(), sd_varlink_sendb() and sd_varlink_sendbo() return a non-negative integer. On failure, they return a negative errno-style error code.

Errors

Returned errors may indicate the following problems:

-EINVAL
An argument is invalid.

-ENOMEM
Memory allocation failed.

-ENOTCONN
The Varlink connection object is not connected.

-ENOBUFS
The internal limit of queued messages for the Varlink connection has been reached. This limit is set very high, and hitting it typically indicates that the Varlink connection object is stalled — possibly because sd_varlink_process() has not been called regularly enough, or because the peer is not processing any queued messages. This limit is a safety precaution to ensure a stalled peer will not result in unbounded memory allocations on the client side.

History

See Also

systemd(1), sd-varlink(3), sd_varlink_call(3), sd_varlink_build(3)