lkml.org 
[lkml]   [2022]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] printk: Export log_buf_len to userland
Date
On 2022-08-15, Sergey Senozhatsky <senozhatsky@chromium.org> wrote:
> On (22/08/10 14:25), Marc Aurèle La France wrote:
>>
>> Make the kernel log's buffer size available to userland so it can be
>> used with `dmesg -s`.

This information is already available via:

klogctl(SYSLOG_ACTION_SIZE_BUFFER, NULL, 0)

And dmesg already uses this with "dmesg -S".

John Ogness

\
 
 \ /
  Last update: 2022-08-15 18:03    [W:0.046 / U:2.564 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site