1nbd_get_private_data(3)             LIBNBD             nbd_get_private_data(3)
2
3
4

NAME

6       nbd_get_private_data - get the per-handle private data
7

SYNOPSIS

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

DESCRIPTION

14       Return the value of the private data field set previously by a call to
15       nbd_set_private_data(3) (or 0 if it was not previously set).
16

RETURN VALUE

18       This call returns a "uintptr_t".
19

ERRORS

21       This function does not fail.
22
23       The following parameters must not be NULL: "h".  For more information
24       see "Non-NULL parameters" in libnbd(3).
25

VERSION

27       This function first appeared in libnbd 1.8.
28
29       If you need to test if this function is available at compile time check
30       if the following macro is defined:
31
32        #define LIBNBD_HAVE_NBD_GET_PRIVATE_DATA 1
33

SEE ALSO

35       nbd_create(3), nbd_set_private_data(3), libnbd(3).
36

AUTHORS

38       Eric Blake
39
40       Richard W.M. Jones
41
43       Copyright (C) 2019-2021 Red Hat Inc.
44

LICENSE

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