nbd_clear_debug_callback(3)
β¨ nbd_clear_debug_callback β clear the debug callback β¨
okay so this is a libnbd manpage, bestie β the library is called LIBNBD and this little function is nbd_clear_debug_callback(3). it's short, it's sweet, it's giving "one job and it does it" π
πΈ SYNOPSIS πΈ
#include <libnbd.h>
int nbd_clear_debug_callback (
struct nbd_handle *h
);
literally that's it. one handle, one int back. no cap π«Ά
π DESCRIPTION π
so here's the tea: this function removes the debug callback if one was previously associated with the handle β and it gets associated via nbd_set_debug_callback(3), iykyk.
and if no callback was ever associated? it does nothing. no drama, no error, just vibes β¨ it's the "you're uninvited from the group chat but you were never in it" of C functions.
π RETURN VALUE π
if the call is successful, the function returns 0. slay. π
π₯ ERRORS π₯
on error, -1 is returned. π
for how to get further details of the error, refer to "ERROR HANDLING" in libnbd(3) β that's where the lore lives.
also important, and I mean important: the following parameters must not be NULL: "h". like, do not. for more info see "Non-NULL parameters" in libnbd(3).
π«Ά friendly reminder from your girl: passingNULLforhis a no-no, the manpage said so, not me.
β VERSION β
this function first appeared in libnbd 1.0. iconic behavior, honestly.
if you need to test whether this function is available at compile time, check if the following macro is defined:
#define LIBNBD_HAVE_NBD_CLEAR_DEBUG_CALLBACK 1
that's your vibe check for the preprocessor, bestie π¦
π SEE ALSO π
go read them, they're all part of the same friend group π
π AUTHORS π
- Eric Blake
- Richard W.M. Jones
legends, both of them. 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 yeah β that's the whole license, all of it, every word. legal girlies don't skip lines. periodt.
and that's the whole page, bestie π this was libnbd-1.25.8, dated 2026-10-13, and the page itself is nbd_clear_debug_callback(3) β mwah, talk later ππΈ
π¦ 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