nbd_stats_chunks_sent3
Statistics of chunks sent over connection so far
Usage
#include <libnbd.h>uint64_t nbd_stats_chunks_sent (struct nbd_handle *h);
Overview
Return the number of chunks that the client has sent to the server, where a chunk is a group of bytes delineated by a magic number that cannot be further subdivided without breaking the protocol.
This number does not necessarily relate to the number of API calls made, nor to the number of TCP packets sent over the connection.
Return value
This call returns a counter.
Errors
This function does not fail.
The following parameters must not be NULL: "h". For more information see "Non-NULL parameters" in libnbd(3).
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_CHUNKS_SENT 1
Releases
2 releases since Debian 13 (Trixie); the text changed 1 time.