nbd_aio_is_negotiating(3)

✨ nbd_aio_is_negotiating ✨

okay bestie, welcome to the nbd_aio_is_negotiating(3) page β€” she's a little libnbd girly from the LIBNBD manual fam and honestly she's giving "quick vibe check, no drama" πŸ’…


🌸 NAME 🌸

nbd_aio_is_negotiating β€” the girl who checks if your connection is ready to send a handshake option 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

like, the actual code, verbatim, no cap:

#include <libnbd.h>

int nbd_aio_is_negotiating (
      struct nbd_handle *h
    );

πŸ’– DESCRIPTION πŸ’–

So here's the tea β˜• β€” this function returns true if this connection is ready to start another option negotiation command while handshaking with the server. Literally that's it, that's the whole gig ✨

An option command will move you back to the connecting state β€” go peek at nbd_aio_is_connecting(3) for that one, iykyk.

🚨 important lil caveat, bestie: this state cannot be reached unless it's requested by nbd_set_opt_mode(3). And even then, it only works with newstyle servers β€” an oldstyle server will just skip straight to nbd_aio_is_ready(3) like it's too cool for the negotiation arc πŸ’€

πŸŽ€ RETURN VALUE πŸŽ€

This call returns a boolean value. true or false, iconic either way πŸ‘‘


🌈 ERRORS 🌈

This function does not fail. Periodt. She's perfect, she never misses πŸ’…

The following parameters must not be NULL: "h". For more info, go read "Non-NULL parameters" in libnbd(3) β€” no passing her a null handle, that's not the vibe πŸ™ˆ


⭐ VERSION ⭐

This function first appeared in libnbd 1.4 πŸŽ‰

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_NEGOTIATING 1

🧚 SEE ALSO 🧚

the whole friend group, go say hi:


πŸ‘‘ AUTHORS πŸ‘‘

The main characters who wrote this:

  • 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 🫢 this lil fairy 🧚 dropped as part of libnbd-1.25.8, dated 2026-10-13, and she ate, fr fr πŸ”₯πŸ’–

πŸ“¦ where this page comes from