mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
kernel: printk: Add non exported function for clearing the log ring buffer
Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
parent
4992adfafb
commit
90bb75ece8
|
|
@ -268,6 +268,14 @@ static int log_buf_get_len(void)
|
|||
return logged_chars;
|
||||
}
|
||||
|
||||
/*
|
||||
* Clears the ring-buffer
|
||||
*/
|
||||
void log_buf_clear(void)
|
||||
{
|
||||
logged_chars = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Copy a range of characters from the log buffer.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user