mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 23:23:53 +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
ee51cfa5c8
commit
da8de7ae93
|
|
@ -305,6 +305,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