what is the purpose of "console_silent" in printk.h?

Justin Skists justin.skists at juzza.co.uk
Tue Aug 21 08:54:48 EDT 2018


> On 21 August 2018 at 13:41 rpjday at crashcourse.ca wrote:
> 
> 
> 
>    i note in include/linux/printk.h:
> 
>    static inline void console_silent(void)
>    {
> 	console_loglevel = CONSOLE_LOGLEVEL_SILENT;
>    }
> 
> except i see no reference to "console_silent" anywhere else in the
> entire kernel code base. any idea what its purpose is?

It was used in an older version of the kernel. The architecture that used that function doesn't look like it is supported any more.

https://elixir.bootlin.com/linux/v4.16.18/source/arch/mn10300/kernel/mn10300-watchdog.c#L184


Justin.



More information about the Kernelnewbies mailing list