aboutsummaryrefslogtreecommitdiffstats
path: root/man/rb_space.3
blob: 35e2ef18a4d7182b81c35c24329819030ae2ba3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.TH "rb_space" "3" "25 January 2018 (v2.1.2)" "bofc.pl"
.SH NAME
.PP
.BR rb_space,
.B rb_count
- get count information for ring buffer
.SH SYNOPSIS
.PP
.BI "#include <librb.h>"
.PP
.BI "long rb_count(struct rb *" rb ");"
.br
.BI "long rb_space(struct rb *" rb ");"
.SH RETURN VALUES
.PP
.BR rb_count (3)
returns number of
.B elements
that are currently stored in buffer, and
.BR rb_space (3)
returns number of how many
.B elements
you can put on the buffer.
.SH ERRORS
.PP
.TP
.B EINVAL
Passed
.I rb
object is invalid.
.SH SEE ALSO
.PP
.BR rb_overview (7),
.BR rb_new (3),
.BR rb_destroy (3),
.BR rb_discard (3),
.BR rb_stop (3),
.BR rb_read (3),
.BR rb_recv (3),
.BR rb_write (3),
.BR rb_send (3),
.BR rb_clear (3),
.BR rb_version (3)