nbd_get_debug(3)

✨ NAME ✨

nbd_get_debug β€” return the state of the debug flag

okay bestie, welcome to the libnbd (LIBNBD) manual πŸ’– this one is short and sweet: she tells you what the debug flag on a handle is doing rn. no cap.


🌸 SYNOPSIS 🌸

#include <libnbd.h>

int nbd_get_debug (
      struct nbd_handle *h
    );

πŸ¦‹ DESCRIPTION πŸ¦‹

Return the state of the debug flag on this handle. that’s it, that’s the whole vibe check πŸ’…


πŸŽ€ RETURN VALUE πŸŽ€

This call returns a boolean value. yes bestie, a boolean β€” that is the entire return-value lore ✨


πŸ’œ ERRORS πŸ’œ

This function does not fail. literally flawless, no error arc 😭

The following parameter must not be NULL: h. for the full tea, see β€œNon-NULL parameters” in libnbd(3).

bestie pls don’t pass NULL for h, okay? that’s the one rule here 🫢

🌈 VERSION 🌈

This function first appeared in libnbd 1.0. iconic from day one πŸ‘‘

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_DEBUG 1

πŸ“ SEE ALSO πŸ“


πŸ‘‘ AUTHORS πŸ‘‘

  • Eric Blake
  • Richard W.M. Jones

Copyright Red Hat


πŸ“œ LICENSE πŸ“œ

okay legal mode, but make it cute: 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


xoxo bestie, this page is from libnbd-1.25.8, dated 2026-10-13, and it’s the nbd_get_debug(3) page β€” bye and slay πŸ’…πŸ’–

πŸ“¦ where this page comes from