nbd_stats_chunks_sent(3)
π nbd_stats_chunks_sent(3) β the LIBNBD glow-up
okay so bestie, you're looking at nbd_stats_chunks_sent(3), which is a real page from the LIBNBD manual fam. buckle up, it's short and sweet and honestly kinda iconic π
β¨ NAME β¨
nbd_stats_chunks_sent β the stats of chunks sent over the connection so far π« like, a running tally, a little leaderboard for your client, yk?
π¦ SYNOPSIS π¦
#include <libnbd.h>
uint64_t nbd_stats_chunks_sent (
struct nbd_handle *h
);
literally that's it. one handle in, one uint64_t out. no drama π
πΈ DESCRIPTION πΈ
so this function returns the number of chunks that the client has sent to the server. and before you ask "what's a chunk" β a chunk is a group of bytes delineated by a magic number that cannot be further subdivided without breaking the protocol. periodt. that's the definition. don't come for it π
and like, small vibe check on what this number is not:
- it does not necessarily relate to the number of API calls made
- and it does not necessarily relate to the number of TCP packets sent over the connection
it's giving "its own thing", okay? main character energy, separate from the API calls and the packets. π§
β RETURN VALUE β
this call returns a counter. that's the whole idea. lowkey the most chill return value ever. π
π₯ ERRORS π₯
good news bestie: this function does not fail. ever. no cap. π₯
but there's one must-know caveat: the following parameters must not be NULL: "h". for way more info on that whole situation, go see "Non-NULL parameters" in libnbd(3). π
π VERSION π
this function first appeared in libnbd 1.16. so if you're on something older, sorry babe π
if you need to test whether this function is available at compile time, check if the following macro is defined:
#define LIBNBD_HAVE_NBD_STATS_CHUNKS_SENT 1
that macro is your bestie for real, use it π«Ά
π SEE ALSO π
the whole friend group:
nbd_create(3)nbd_set_strict_mode(3)nbd_stats_bytes_received(3)nbd_stats_bytes_sent(3)nbd_stats_chunks_received(3)libnbd(3)
iykyk π
π AUTHORS π
the legends themselves:
- Eric Blake
- Richard W.M. Jones
we stan π π
π 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. (yes, that means no warranty, fr fr β read it and weep π)
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 π
k that's the whole page bestie! now go count those chunks and slay β¨
big mwah from libnbd-1.25.8, dated 2026-10-13 β that's the version and the date, and nbd_stats_chunks_sent(3) is officially a wrap π«Άπ
π¦ 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