1KMSG_DUMP_GET_LINE(9) Driver Basics KMSG_DUMP_GET_LINE(9)
2
3
4
6 kmsg_dump_get_line - retrieve one kmsg log line
7
9 bool kmsg_dump_get_line(struct kmsg_dumper * dumper, bool syslog,
10 char * line, size_t size, size_t * len);
11
13 dumper
14 registered kmsg dumper
15
16 syslog
17 include the “<4>” prefixes
18
19 line
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
29 Start at the beginning of the kmsg buffer, with the oldest kmsg record,
30 and copy one record into the provided buffer.
31
32 Consecutive calls will return the next available record moving towards
33 the end of the buffer with the youngest messages.
34
35 A return value of FALSE indicates that there are no more records to
36 read.
37
39Kernel Hackers Manual 3.10 June 2019 KMSG_DUMP_GET_LINE(9)