nbd_aio_get_fd(3)
β¨ nbd_aio_get_fd(3) β the libnbd bestie page π
okay so this is nbd_aio_get_fd(3), straight out of the LIBNBD manual universe, and it's literally the glow-up for getting at the file descriptor behind a connection π¦
πΈ NAME πΈ
nbd_aio_get_fd β return file descriptor associated with this connection
β¨ SYNOPSIS β¨
#include <libnbd.h>
int nbd_aio_get_fd (
struct nbd_handle *h
);
π DESCRIPTION π
bestie. this function returns the underlying file descriptor associated with this connection. that's the whole vibe. π«Ά
you can use it to check if the file descriptor is ready for reading or writing, and then call nbd_aio_notify_read(3) or nbd_aio_notify_write(3). see also nbd_aio_get_direction(3).
β οΈ okay but fr fr: do not do anything else with the file descriptor. no extra little experiments, no side quests. that's the rule. π
π RETURN VALUE π
this call returns a file descriptor. iconic. β¨
π ERRORS π
on error -1 is returned.
refer to "ERROR HANDLING" in libnbd(3) for how to get further details of the error.
the following parameters must not be NULL: "h". for more info see "Non-NULL parameters" in libnbd(3).
π VERSION π
this function first appeared in libnbd 1.0.
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_GET_FD 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 π this was libnbd-1.25.8, dated 2026-10-13, and yes it's giving "licensed, documented, and absolutely slaying" π
β¨
π¦ 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