---
name: "kmsg_dump_get_buffer"
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_buffer"
---

# kmsg\_dump\_get\_buffer(9)

copy kmsg log lines

## NAME

kmsg\_dump\_get\_buffer - copy kmsg log lines

## SYNOPSIS

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

## ARGUMENTS

*dumper*

registered kmsg dumper

*syslog*

include the “\<4\>” prefixes

*buf*

buffer to copy the line to

*size*

maximum size of the buffer

*len*

length of line placed into buffer

## DESCRIPTION

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.

## COPYRIGHT
