nbd_stats_chunks_received(3)
π nbd_stats_chunks_received(3) β like, the libnbd manual, bestie edition π
okay so this is a page from libnbd(3) β yes, the libnbd manual, the whole library situation β and today we're doing nbd_stats_chunks_received(3). it's a stats girlie. she counts things. let's get into it β¨
β¨ NAME β¨
nbd_stats_chunks_received β the statistics of chunks received over the connection, like, so far π«
πΈ SYNOPSIS πΈ
#include <libnbd.h>
uint64_t nbd_stats_chunks_received (
struct nbd_handle *h
);
π¦ DESCRIPTION π¦
okay so picture this: this function returns the number of chunks that the client has received from the server. and a chunk, bestie, is a group of bytes delineated by a magic number that cannot be further subdivided without breaking the protocol. iconic. no notes. π₯
and the way that this number does not necessarily relate to the number of API calls made β like, at all β nor to the number of TCP packets received over the connection. ngl she's her own independent queen, don't try to math her into a different metric π
π RETURN VALUE π
this call returns a counter. that's it. that's the tea β
π§ ERRORS π§
kk so β this function does not fail. she simply does not miss. π
but (and this is the important part) the following parameters must not be NULL: h. like, please don't. for more information see "Non-NULL parameters" in libnbd(3), mwah π«Ά
β VERSION β
this function first appeared in libnbd 1.16. a legend was born, fr fr π
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_CHUNKS_RECEIVED 1
π SEE ALSO π
go read these too, they're all in the group chat:
- nbd_create(3)
- nbd_get_structured_replies_negotiated(3)
- nbd_stats_bytes_received(3)
- nbd_stats_bytes_sent(3)
- nbd_stats_chunks_sent(3)
- libnbd(3)
π AUTHORS π
- Eric Blake
- Richard W.M. Jones
(absolute icons, both of them π)
π 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
real talk though β that warranty disclaimer is not a vibe check you want to fail, so read it properly, k? π
aaaand that's the whole page, bestie! π mwah! this one's from libnbd-1.25.8, dated 2026-10-13 β write that down, put it in your notes app, screenshot it, whatever πβ¨π¦
π¦ 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