kmsg_dump_get_line — retrieve one kmsg log line
bool kmsg_dump_get_line ( | struct kmsg_dumper * dumper, |
| bool syslog, | |
| char * line, | |
| size_t size, | |
size_t * len); |
dumperregistered kmsg dumper
sysloginclude the “<4>” prefixes
linebuffer to copy the line to
sizemaximum size of the buffer
lenlength of line placed into buffer
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.