1nbd_stats_chunks_sent(3) LIBNBD nbd_stats_chunks_sent(3)
2
3
4
6 nbd_stats_chunks_sent - statistics of chunks sent over connection so
7 far
8
10 #include <libnbd.h>
11
12 uint64_t nbd_stats_chunks_sent (
13 struct nbd_handle *h
14 );
15
17 Return the number of chunks that the client has sent to the server,
18 where a chunk is a group of bytes delineated by a magic number that
19 cannot be further subdivided without breaking the protocol.
20
21 This number does not necessarily relate to the number of API calls
22 made, nor to the number of TCP packets sent over the connection.
23
25 This call returns a counter.
26
28 This function does not fail.
29
30 The following parameters must not be NULL: "h". For more information
31 see "Non-NULL parameters" in libnbd(3).
32
34 This function first appeared in libnbd 1.16.
35
36 If you need to test if this function is available at compile time check
37 if the following macro is defined:
38
39 #define LIBNBD_HAVE_NBD_STATS_CHUNKS_SENT 1
40
42 nbd_create(3), nbd_set_strict_mode(3), nbd_stats_bytes_received(3),
43 nbd_stats_bytes_sent(3), nbd_stats_chunks_received(3), libnbd(3).
44
46 Eric Blake
47
48 Richard W.M. Jones
49
51 Copyright Red Hat
52
54 This library is free software; you can redistribute it and/or modify it
55 under the terms of the GNU Lesser General Public License as published
56 by the Free Software Foundation; either version 2 of the License, or
57 (at your option) any later version.
58
59 This library is distributed in the hope that it will be useful, but
60 WITHOUT ANY WARRANTY; without even the implied warranty of
61 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
62 Lesser General Public License for more details.
63
64 You should have received a copy of the GNU Lesser General Public
65 License along with this library; if not, write to the Free Software
66 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
67 02110-1301 USA
68
69
70
71libnbd-1.16.5 2023-09-26 nbd_stats_chunks_sent(3)