1nbd_get_pread_initialize(3)         LIBNBD         nbd_get_pread_initialize(3)
2
3
4

NAME

6       nbd_get_pread_initialize - see whether libnbd pre-initializes read
7       buffers
8

SYNOPSIS

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

DESCRIPTION

17       Return whether libnbd performs a pre-initialization of a buffer passed
18       to nbd_pread(3) and similar to all zeroes, as set by
19       nbd_set_pread_initialize(3).
20

RETURN VALUE

22       This call returns a boolean value.
23

ERRORS

25       This function does not fail.
26
27       The following parameters must not be NULL: "h".  For more information
28       see "Non-NULL parameters" in libnbd(3).
29

VERSION

31       This function first appeared in libnbd 1.12.
32
33       If you need to test if this function is available at compile time check
34       if the following macro is defined:
35
36        #define LIBNBD_HAVE_NBD_GET_PREAD_INITIALIZE 1
37

SEE ALSO

39       nbd_aio_pread(3), nbd_aio_pread_structured(3), nbd_create(3),
40       nbd_pread(3), nbd_pread_structured(3), nbd_set_pread_initialize(3),
41       nbd_set_strict_mode(3), libnbd(3).
42

AUTHORS

44       Eric Blake
45
46       Richard W.M. Jones
47
49       Copyright Red Hat
50

LICENSE

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