kmsg_dump_get_line - retrieve one kmsg log line
2. SYNOPSIS ▲
bool kmsg_dump_get_line(struct kmsg_dumper * dumper , bool syslog , char * line , size_t size , size_t * len );
3. ARGUMENTS ▲
registered kmsg dumper
include the « <4> » prefixes
buffer to copy the line to
maximum size of the buffer
length of line placed into buffer
4. DESCRIPTION ▲
Start at the beginning of the kmsg buffer, with the oldest kmsg record, and copy one record into the provided buffer.
Consecutive calls will return the next available record moving towards the end of the buffer with the youngest messages.
A return value of FALSE indicates that there are no more records to read.
5. COPYRIGHT ▲