Re: [PATCH] printk: Export log_buf_len to userland

From: Marc Aurèle La France
Date: Mon Aug 15 2022 - 19:22:34 EST


On Mon, 15 Aug 2022, John Ogness wrote:
On 2022-08-15, Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx> 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".

Thanks for the much more helpful reply.

Have a great day.

Marc.