nbd_stats_bytes_received(3)
π nbd_stats_bytes_received β LIBNBDβs βbytes received over connection so farβ moment π
okay so bestie, this is the nbd_stats_bytes_received(3) page from the LIBNBD manual, and itβs literally about the statistics of bytes received over connection so far. lowkey iconic. π
πΈ NAME πΈ
nbd_stats_bytes_received β statistics of bytes received over connection so far. thatβs the vibe. β¨
π¦ SYNOPSIS π¦
okay so hereβs the include and the function signature, verbatim, no cap:
#include <libnbd.h>
uint64_t nbd_stats_bytes_received (
struct nbd_handle *h
);
π DESCRIPTION π
Return the number of bytes that the client has received from the server. thatβs the whole assignment. π«Ά
This tracks the plaintext bytes utilized by the NBD protocol; it may differ from the number of bytes actually received over the connection, particularly when TLS is in use. so yeah, TLS can make the raw connection bytes and this counter not match up. not me explaining TLS at the function level but here we are π
π RETURN VALUE π
This call returns a counter. thatβs it. a counter. periodt. π₯
π ERRORS π
This function does not fail. like, no error era. π
The following parameters must not be NULL: "h". For more information see "Non-NULL parameters" in libnbd(3).
bestie, read that again:"h"must not be NULL. the function itself does not fail, but NULL for"h"is not the move. π
β 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_STATS_BYTES_RECEIVED 1
π§ SEE ALSO π§
nbd_create(3)nbd_stats_bytes_sent(3)nbd_stats_chunks_received(3)nbd_stats_chunks_sent(3)libnbd(3)
π AUTHORS π
- Eric Blake
- Richard W.M. Jones
πΈ COPYRIGHT πΈ
Copyright Red Hat
π LICENSE π
okay legal bestie, hereβs the exact license tea, no edits because legal is legal:
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
xoxo, your libnbd bestie π
β this page is from libnbd-1.25.8, dated 2026-10-13. slay and read your manpages responsibly π«Άβ¨
π¦ 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