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 bynbd_set_opt_mode(3). And even then, it only works with newstyle servers β an oldstyle server will just skip straight tonbd_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 π
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
- 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