NULL TTY driver

modulename: ttynull.ko

configname: CONFIG_NULL_TTY

Linux Kernel Configuration
└─>Device Drivers
└─>Character devices
└─>NULL TTY driver
In linux kernel since version 5.1 (release Date: 2019-05-05)  
Say Y here if you want a NULL TTY which simply discards messages.

This is useful to allow userspace applications which expect a console
device to work without modifications even when no console is
available or desired.

In order to use this driver, you should redirect the console to this
TTY, or boot the kernel with console=ttynull.

If unsure, say N.

source code:
depends
CONFIG_TTY