nbdkit_name(3)
β¨ 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 returningNULLis not an error. so if you getNULL, 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 π
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
- fedora 44: nbdkit-devel 1.48.1-1.fc44 Β· BSD-3-Clause
- fedora 44: nbdkit-devel 1.48.1-1.fc44 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms