kmsg_dump_get_buffer — copy kmsg log lines
bool kmsg_dump_get_buffer ( | struct kmsg_dumper * dumper, |
| bool syslog, | |
| char * buf, | |
| size_t size, | |
size_t * len); |
dumperregistered kmsg dumper
sysloginclude the “<4>” prefixes
bufbuffer to copy the line to
sizemaximum size of the buffer
lenlength of line placed into buffer
Start at the end of the kmsg buffer and fill the provided buffer with as many of the the *youngest* kmsg records that fit into it. If the buffer is large enough, all available kmsg records will be copied with a single call.
Consecutive calls will fill the buffer with the next block of available older records, not including the earlier retrieved ones.
A return value of FALSE indicates that there are no more records to read.