1. NAME

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

dumper
    registered kmsg dumper

syslog
    include the « <4> » prefixes

line
    buffer to copy the line to

size
    maximum size of the buffer

len
    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