vrb_put(3) - Linux man page
Name
vrb_put - put data into a VRBLibrary
-lvrbSynopsis
#include <vrb.h>size_t vrb_put(vrb_p vrb, char *source, size_t size);
Description
vrb_put puts caller provided data into a virtual ring buffer. If less space is available in the virtual ring buffer, then only as much will be copied as can be fit in.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
size_tThe actual length of data copied is returned, which can be any value from 0 to the specified size.
Errors
If an error is returned, then errno will have the following value:- EINVAL
- An invalid virtual ring buffer pointer was specified.