nbd_get_version_extra(3)
π nbd_get_version_extra(3) β the libnbd page, bestie edition π
okay so you're in the LIBNBD section of the manual and you want the whole tea on nbd_get_version_extra. say less. here's everything, no cap π«Ά
β¨ NAME β¨
nbd_get_version_extra β literally just returns the extra version of the library π
β¨ SYNOPSIS β¨
#include <libnbd.h>
const char * nbd_get_version_extra (
struct nbd_handle *h
);
β¨ DESCRIPTION β¨
okay so this one is giving "tell me your lore" energy. it returns the extra version of libnbd. like, the freeform string that gets baked in at package build time using this:
./configure --with-extra="..."
and the whole point? downstream packagers (think Linux distributions, iykyk) are the intended audience β they use it to convey extra version info, like the exact version of the libnbd RPM, the .deb, that kind of thing π
the string may be "", which is the vibe check saying no extra version info is available β or that this is an upstream build of libnbd. either way, empty is a legit answer, don't come for her π
β¨ RETURN VALUE β¨
this call returns a statically allocated string β valid for the lifetime of the process, or until libnbd is unloaded by dlclose(3). and bestie listen to me: you must not try to free the string. hands off. it's not yours. π«Ά
β¨ ERRORS β¨
she does not fail. periodt. this function cannot fail. icon behaviour honestly π
the following parameters must not be NULL: "h". for more info see "Non-NULL parameters" in libnbd(3).
β¨ VERSION β¨
this function first appeared in libnbd 1.24. she's new-ish, respect her πΈ
if you need to test whether this function is available at compile time, check whether the following macro is defined:
#define LIBNBD_HAVE_NBD_GET_VERSION_EXTRA 1
β¨ SEE ALSO β¨
nbd_create(3), nbd_get_package_name(3), nbd_get_version_extra(3), libnbd(3).
β¨ AUTHORS β¨
Eric Blake
Richard W.M. Jones
(absolute legends, fr fr π)
β¨ COPYRIGHT β¨
Copyright Red Hat
β¨ LICENSE β¨
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
and that's the whole page, bestie π¦ this lil beauty is from libnbd-1.24.4, dated 2026-10-13, and you were reading the nbd_get_version_extra(3) page the entire time β¨ mwah π
π¦ where this page comes from
- arch rolling: libnbd 1.24.4-1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms