1nbd_supports_vsock(3)               LIBNBD               nbd_supports_vsock(3)
2
3
4

NAME

6       nbd_supports_vsock - true if libnbd was compiled with support for
7       AF_VSOCK
8

SYNOPSIS

10        #include <libnbd.h>
11
12        int nbd_supports_vsock (
13              struct nbd_handle *h
14            );
15

DESCRIPTION

17       Returns true if libnbd was compiled with support for the "AF_VSOCK"
18       family of sockets, or false if not.
19
20       Note that on the Linux operating system, this returns true if there is
21       compile-time support, but you may still need runtime support for some
22       aspects of AF_VSOCK usage; for example, use of "VMADDR_CID_LOCAL" as
23       the server name requires that the vsock_loopback kernel module is
24       loaded.
25

RETURN VALUE

27       This call returns a boolean value.
28

ERRORS

30       This function does not fail.
31
32       The following parameters must not be NULL: "h".  For more information
33       see "Non-NULL parameters" in libnbd(3).
34

VERSION

36       This function first appeared in libnbd 1.16.
37
38       If you need to test if this function is available at compile time check
39       if the following macro is defined:
40
41        #define LIBNBD_HAVE_NBD_SUPPORTS_VSOCK 1
42

SEE ALSO

44       nbd_connect_uri(3), nbd_connect_vsock(3), nbd_create(3), libnbd(3).
45

AUTHORS

47       Eric Blake
48
49       Richard W.M. Jones
50
52       Copyright Red Hat
53

LICENSE

55       This library is free software; you can redistribute it and/or modify it
56       under the terms of the GNU Lesser General Public License as published
57       by the Free Software Foundation; either version 2 of the License, or
58       (at your option) any later version.
59
60       This library is distributed in the hope that it will be useful, but
61       WITHOUT ANY WARRANTY; without even the implied warranty of
62       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
63       Lesser General Public License for more details.
64
65       You should have received a copy of the GNU Lesser General Public
66       License along with this library; if not, write to the Free Software
67       Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
68       02110-1301 USA
69
70
71
72libnbd-1.18.1                     2023-10-31             nbd_supports_vsock(3)
Impressum