---
name: "kmsg_dump_get_line"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/kmsg_dump_get_line"
---

# kmsg\_dump\_get\_line(9)

retrieve one kmsg log line

## NAME

kmsg\_dump\_get\_line - retrieve one kmsg log line

## SYNOPSIS

**bool kmsg\_dump\_get\_line(struct kmsg\_dumper \*** *dumper***, bool** *syslog***, char \*** *line***, size\_t** *size***, size\_t \*** *len***);**

## 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

## 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.

## COPYRIGHT
