nbd_aio_is_created(3)

✨ nbd_aio_is_created β€” check if the connection has just been created ✨

okay bestie, this is a page from libnbd(3) β€” the libnbd manual, and honestly? this little function is a whole vibe check for your connection 🫢


🌸 SYNOPSIS 🌸

#include <libnbd.h>

int nbd_aio_is_created (
      struct nbd_handle *h
    );

πŸ’– DESCRIPTION πŸ’–

So. <pink>Return true</pink> if this connection has just been created. That's it, that's the whole girl. 🌱

Think of it like this: this is the state before the handle has started connecting to a server. Baby handle. Fresh out the box. Hasn't met anybody yet. 😭

And the slay part? In this state, the handle can start to be connected, and you do that by calling functions such as nbd_aio_connect(3). So yeah β€” this is your "go talk to the server" green light moment πŸ’…βœ¨


πŸ‘‘ RETURN VALUE πŸ‘‘

This call returns a boolean value. true or false, that's it, no crumbs 🌈


πŸ”₯ ERRORS πŸ”₯

Good news, bestie: this function does not fail. Ever. It's literally just vibing 😌

⚠️ but listen β€” the following parameters must not be NULL: "h". For more info on that whole situation, see "Non-NULL parameters" in libnbd(3). No cap, don't pass a NULL handle, that's not the move πŸ’€

⭐ VERSION ⭐

This function first appeared in libnbd 1.0. iconic behavior honestly πŸŽ€

If you need to test if this function is available at compile time, check if the following macro is defined:

#define LIBNBD_HAVE_NBD_AIO_IS_CREATED 1

iykyk 🌸


πŸ¦‹ SEE ALSO πŸ¦‹

go read them, they're all part of the same friend group πŸ’œ


🧚 AUTHORS 🧚

  • Eric Blake
  • Richard W.M. Jones

kings, honestly πŸ‘‘


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. fr fr, that's the address, keep it πŸ“


and that's the whole page, bestie!! πŸŽ€ this one's from libnbd-1.25.8, dated 2026-10-13 β€” nbd_aio_is_created(3), we love her, periodt πŸ’–βœ¨

πŸ“¦ where this page comes from