1KMSG_DUMP_GET_BUFFER(9)          Driver Basics         KMSG_DUMP_GET_BUFFER(9)
2
3
4

NAME

6       kmsg_dump_get_buffer - copy kmsg log lines
7

SYNOPSIS

9       bool kmsg_dump_get_buffer(struct kmsg_dumper * dumper, bool syslog,
10                                 char * buf, size_t size, size_t * len);
11

ARGUMENTS

13       dumper
14           registered kmsg dumper
15
16       syslog
17           include the “<4>” prefixes
18
19       buf
20           buffer to copy the line to
21
22       size
23           maximum size of the buffer
24
25       len
26           length of line placed into buffer
27

DESCRIPTION

29       Start at the end of the kmsg buffer and fill the provided buffer with
30       as many of the the *youngest* kmsg records that fit into it. If the
31       buffer is large enough, all available kmsg records will be copied with
32       a single call.
33
34       Consecutive calls will fill the buffer with the next block of available
35       older records, not including the earlier retrieved ones.
36
37       A return value of FALSE indicates that there are no more records to
38       read.
39
41Kernel Hackers Manual 3.10         June 2019           KMSG_DUMP_GET_BUFFER(9)
Impressum