nbdkit_name(3)

πŸ“¦
version 1.48.1 Β· 4 versions
, in fedora 44

✨ nbdkit_name(3) ✨

okay bestie, this is a page from the nbdkit manual, and it's genuinely one of the shortest and sweetest ones in the whole set. it's about getting the name of your nbdkit instance. that's it. that's the whole vibe. πŸ’–


🌸 NAME 🌸

nbdkit_name β€” get the name of the nbdkit instance


πŸŽ€ SYNOPSIS πŸŽ€

#include <nbdkit-plugin.h>

const char *nbdkit_name (void);

πŸ¦‹ DESCRIPTION πŸ¦‹

nbdkit_name returns the name of the nbdkit instance. no cap. it's literally the string that was set through the nbdkit --name parameter. ✨

and if the name was not set? it returns NULL. that's it, that's the whole function. short king behavior fr fr. πŸ‘‘


πŸ’… RETURN VALUE πŸ’…

the function returns a constant string, valid for the lifetime of the process, or NULL.

note that returning NULL is not an error. so if you get NULL, don't panic, bestie, it's just how it is. πŸ’œ

🌈 LANGUAGE BINDINGS 🌈

slay, it's available in other languages too, because we're inclusive like that 🫢

nbdkit-ocaml-plugin(3)

NBDKit.name : unit -> string option

nbdkit-python-plugin(3)

import nbdkit
name = nbdkit.name()

nbdkit-rust-plugin(3)

use nbdkit::*;
pub fn name() -> Option<String>

⭐ HISTORY ⭐

nbdkit_name was added in nbdkit 1.48. so if you're on something older… yeah, it's giving vintage, and not in the cute way. 😭


πŸ”₯ SEE ALSO πŸ”₯


πŸ‘‘ AUTHORS πŸ‘‘

Richard W.M. Jones


Copyright Red Hat


🧚 LICENSE 🧚

okay this part is the legal bit and we do not paraphrase legal bits, so here it is exactly, bestie. no edits, no vibes, just facts. πŸ“œ

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of Red Hat nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY RED HAT AND CONTRIBUTORS ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RED HAT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


and that's the whole page, bestie! πŸ’…βœ¨ this one shipped as part of nbdkit-1.48.1, dated 2026-08-29 β€” so go forth, get your instance's name, and slay. πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from