1nbd_get_opt_mode(3)                 LIBNBD                 nbd_get_opt_mode(3)
2
3
4

NAME

6       nbd_get_opt_mode - return whether option mode was enabled
7

SYNOPSIS

9        #include <libnbd.h>
10
11        int nbd_get_opt_mode (struct nbd_handle *h);
12

DESCRIPTION

14       Return true if option negotiation mode was enabled on this handle.
15

RETURN VALUE

17       This call returns a boolean value.
18

ERRORS

20       This function does not fail.
21

VERSION

23       This function first appeared in libnbd 1.4.
24
25       If you need to test if this function is available at compile time check
26       if the following macro is defined:
27
28        #define LIBNBD_HAVE_NBD_GET_OPT_MODE 1
29

SEE ALSO

31       nbd_create(3), nbd_set_opt_mode(3), libnbd(3).
32

AUTHORS

34       Eric Blake
35
36       Richard W.M. Jones
37
39       Copyright (C) 2019-2020 Red Hat Inc.
40

LICENSE

42       This library is free software; you can redistribute it and/or modify it
43       under the terms of the GNU Lesser General Public License as published
44       by the Free Software Foundation; either version 2 of the License, or
45       (at your option) any later version.
46
47       This library is distributed in the hope that it will be useful, but
48       WITHOUT ANY WARRANTY; without even the implied warranty of
49       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
50       Lesser General Public License for more details.
51
52       You should have received a copy of the GNU Lesser General Public
53       License along with this library; if not, write to the Free Software
54       Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
55       02110-1301 USA
56
57
58
59libnbd-1.6.2                      2021-03-02               nbd_get_opt_mode(3)
Impressum