nbd_get_private_data(3)

🌸 NAME 🌸

hey bestie πŸ’– welcome to nbd_get_private_data(3), straight out of the LIBNBD manual. this one is all about grabbing the per-handle private data, and it’s honestly a tiny icon.

nbd_get_private_data β€” get the per-handle private data. no cap, that’s the name and the whole job 🫢


✨ SYNOPSIS ✨

        #include <libnbd.h>

        uintptr_t nbd_get_private_data (
                    struct nbd_handle *h
                  );

πŸ’… DESCRIPTION πŸ’…

okay so here’s the tea β˜•: this call returns the value of the private data field that was set earlier by a call to nbd_set_private_data(3). and if it was not previously set? you get 0. that’s it. that’s the vibe πŸ’–


⭐ RETURN VALUE ⭐

this call returns a uintptr_t πŸ’…. literally that type, bestie.


😌 ERRORS 😌

this function does not fail 😌. zero drama, zero errors.

but heads up: the following parameters must not be NULL: h. for more information see the "Non-NULL parameters" section in libnbd(3).


πŸ¦‹ VERSION πŸ¦‹

this function first appeared in libnbd 1.8 ✨.

if you need to test if this function is available at compile time, check if the following macro is defined:

#define LIBNBD_HAVE_NBD_GET_PRIVATE_DATA 1

πŸ‘‘ SEE ALSO πŸ‘‘

go give these a little scroll, bestie:


πŸŽ€ AUTHORS πŸŽ€

shoutout to the icons who wrote this:

  • Eric Blake
  • Richard W.M. Jones

Copyright Red Hat. that’s the copyright line, periodt.


🌈 LICENSE 🌈

okay legal bestie moment 🫢 i’m not gonna paraphrase this one, because license text is serious business. here’s the actual license, verbatim:

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

k bye bestie πŸ’– this whole page comes from libnbd-1.25.8, dated 2026-10-13, and it’s the nbd_get_private_data(3) page β€” stay slay, stay safe, and don’t forget to set your private data first βœ¨πŸ‘‘

πŸ“¦ where this page comes from