public inbox for linux-doc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] Docs: printk: add 'console=null|""' to admin/kernel-parameters
@ 2022-02-16 20:37 Randy Dunlap
  2022-02-21 14:47 ` Petr Mladek
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2022-02-16 20:37 UTC (permalink / raw)
  To: linux-kernel
  Cc: Randy Dunlap, Petr Mladek, Sergey Senozhatsky, Steven Rostedt,
	John Ogness, Jonathan Corbet, linux-doc

Tell about 'console=null|""' and how to use it.

It can be helpful to set (enable) CONFIG_NULL_TTY so that the ttynull
driver is available. This avoids problems with stdin/stdout/stderr of
the init process. Howevere, CONFIG_NULL_TTY cannot be enabled by default
because it can be used by mistake [see commit a91bd6223ecd ("Revert
"init/console: Use ttynull as a fallback when there is no console").]

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Petr Mladek <pmladek@suse.com>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: John Ogness <john.ogness@linutronix.de>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-doc@vger.kernel.org
---
v2: "must be the only console=" instead of the first one. (Petr)
    Add info about CONFIG_NULL_TTY to the commit message. (Petr)

 Documentation/admin-guide/kernel-parameters.txt |    6 ++++++
 1 file changed, 6 insertions(+)

--- linux-next-20220216.orig/Documentation/admin-guide/kernel-parameters.txt
+++ linux-next-20220216/Documentation/admin-guide/kernel-parameters.txt
@@ -724,6 +724,12 @@
 		hvc<n>	Use the hypervisor console device <n>. This is for
 			both Xen and PowerPC hypervisors.
 
+		{ null | "" }
+			Use to disable console output, i.e., to have kernel
+			console messages discarded.
+			This must be only console= string used on the
+			kernel command line.
+
 		If the device connected to the port is not a TTY but a braille
 		device, prepend "brl," before the device type, for instance
 			console=brl,ttyS0

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] Docs: printk: add 'console=null|""' to admin/kernel-parameters
  2022-02-16 20:37 [PATCH v2] Docs: printk: add 'console=null|""' to admin/kernel-parameters Randy Dunlap
@ 2022-02-21 14:47 ` Petr Mladek
  0 siblings, 0 replies; 2+ messages in thread
From: Petr Mladek @ 2022-02-21 14:47 UTC (permalink / raw)
  To: Randy Dunlap
  Cc: linux-kernel, Sergey Senozhatsky, Steven Rostedt, John Ogness,
	Jonathan Corbet, linux-doc

On Wed 2022-02-16 12:37:45, Randy Dunlap wrote:
> Tell about 'console=null|""' and how to use it.
> 
> It can be helpful to set (enable) CONFIG_NULL_TTY so that the ttynull
> driver is available. This avoids problems with stdin/stdout/stderr of
> the init process. Howevere, CONFIG_NULL_TTY cannot be enabled by default
> because it can be used by mistake [see commit a91bd6223ecd ("Revert
> "init/console: Use ttynull as a fallback when there is no console").]
> 
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>

The patch is committed in printk/linux.git, branch for-5.18.

Best Regards,
Petr

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-21 14:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-16 20:37 [PATCH v2] Docs: printk: add 'console=null|""' to admin/kernel-parameters Randy Dunlap
2022-02-21 14:47 ` Petr Mladek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox