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 of AF_VSOCK usage. for example, use of VMADDR_CID_LOCAL as the server name requires that the vsock_loopback kernel 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 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