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 π
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
- centos-stream 10: libnbd-devel 1.25.8-1.el10 Β· LGPL-2.0-or-later AND BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms