vrb_put_all(3) - Linux man page
Name
vrb_put_all - put all data into a VRBLibrary
-lvrbSynopsis
#include <vrb.h>int vrb_put_all(vrb_p vrb, char *source, size_t size);
Description
vrb_put_all puts caller provided data into a virtual ring buffer only if all the data will fit.Arguments
specifies which virtual ring buffer.
char *source
specifies the location where to copy the data from.
size_t size
specifies the length of data provided by the caller.
Return Value
intIf the data fits and is copied, 0 is returned, otherwise -1 is returned.
Errors
If an error is returned, then errno will have one of the following values:- EINVAL
- An invalid virtual ring buffer pointer was specified.
- ENOSPC
- The virtual ring buffer does not have enough space to hold all of the data.