1nbd_aio_connect_systemd_socket_actinvbaLdtI_iBaoNinBo(D_3c)onnect_systemd_socket_activation(3)
2
3
4
6 nbd_aio_connect_systemd_socket_activation - connect using systemd
7 socket activation
8
10 #include <libnbd.h>
11
12 int nbd_aio_connect_systemd_socket_activation (
13 struct nbd_handle *h, char **argv
14 );
15
17 Run the command as a subprocess and begin connecting to it using
18 systemd socket activation. Parameters behave as documented in
19 nbd_connect_systemd_socket_activation(3).
20
21 You can check if the connection attempt is still underway by calling
22 nbd_aio_is_connecting(3). If nbd_set_opt_mode(3) is enabled, the
23 connection is ready for manual option negotiation once
24 nbd_aio_is_negotiating(3) returns true; otherwise, the connection
25 attempt will include the NBD handshake, and is ready for use once
26 nbd_aio_is_ready(3) returns true.
27
29 If the call is successful the function returns 0.
30
32 On error -1 is returned.
33
34 Refer to "ERROR HANDLING" in libnbd(3) for how to get further details
35 of the error.
36
37 The following parameters must not be NULL: "h", "argv". For more
38 information see "Non-NULL parameters" in libnbd(3).
39
41 The handle must be newly created, otherwise this call will return an
42 error.
43
45 This function first appeared in libnbd 1.2.
46
47 If you need to test if this function is available at compile time check
48 if the following macro is defined:
49
50 #define LIBNBD_HAVE_NBD_AIO_CONNECT_SYSTEMD_SOCKET_ACTIVATION 1
51
53 nbd_aio_is_connecting(3), nbd_aio_is_negotiating(3),
54 nbd_aio_is_ready(3), nbd_connect_systemd_socket_activation(3),
55 nbd_create(3), nbd_set_opt_mode(3), libnbd(3).
56
58 Eric Blake
59
60 Richard W.M. Jones
61
63 Copyright Red Hat
64
66 This library is free software; you can redistribute it and/or modify it
67 under the terms of the GNU Lesser General Public License as published
68 by the Free Software Foundation; either version 2 of the License, or
69 (at your option) any later version.
70
71 This library is distributed in the hope that it will be useful, but
72 WITHOUT ANY WARRANTY; without even the implied warranty of
73 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
74 Lesser General Public License for more details.
75
76 You should have received a copy of the GNU Lesser General Public
77 License along with this library; if not, write to the Free Software
78 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
79 02110-1301 USA
80
81
82
83libnbd-1.16.5 2n0b2d3_-a0i9o-_2c6onnect_systemd_socket_activation(3)