nbd_supports_vsock(3)
β¨ nbd_supports_vsock β lil function, big vibe check π¦
okay so bestie, this is a page from LIBNBD, and it's about one tiny function that tells you whether your libnbd was built with AF_VSOCK energy or not. let's get into it π
πΈ NAME πΈ
nbd_supports_vsock β returns true if libnbd was compiled with support for AF_VSOCK
π SYNOPSIS π
#include <libnbd.h>
int nbd_supports_vsock (
struct nbd_handle *h
);
π DESCRIPTION π
so this function returns true if libnbd was compiled with support for the AF_VSOCK family of sockets, and false if it wasn't. that's it, that's the whole thing. icon behavior honestly β¨
heads up bestie π«Ά on the Linux operating system, this returns true if there is compile-time support, but you may still need runtime support for some aspects ofAF_VSOCKusage. for example, use ofVMADDR_CID_LOCALas the server name requires that thevsock_loopbackkernel module is loaded. so like, yes but also read the room π
π¦ RETURN VALUE π¦
this call returns a boolean value. true or false, no in-between, we love a clear communicator π
π₯ ERRORS π₯
this function does not fail. literally can't flop π
the following parameters must not be NULL: h. for more information see "Non-NULL parameters" in libnbd(3).
β VERSION β
this function first appeared in libnbd 1.16 π
if you need to test if this function is available at compile time, check if the following macro is defined:
#define LIBNBD_HAVE_NBD_SUPPORTS_VSOCK 1
π§ SEE ALSO π§
π AUTHORS π
Eric Blake
Richard W.M. Jones
π 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 page bestie π it's from libnbd-1.25.8, dated 2026-10-13, and it's the nbd_supports_vsock(3) manual page. go check your vsock support, ily, bye πβ¨π¦
π¦ 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