]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Re-implement virtual console (constty).
authorAlexander Motin <mav@FreeBSD.org>
Sat, 4 Sep 2021 02:18:51 +0000 (22:18 -0400)
committerAlexander Motin <mav@FreeBSD.org>
Sat, 4 Sep 2021 02:18:51 +0000 (22:18 -0400)
commitbd6085c6ae28fb1cc81cca325656332fbd2cebd8
treefb4f381207ae5a0d135862035d5568739d5ab0d3
parentcd85b97e0e701bc87cc5bdb9844168a1f5c204e1
Re-implement virtual console (constty).

Protect conscallout with tty lock instead of Giant.  In addition to
Giant removal it also closes race on console unset.

Introduce additional lock to protect against concurrent console sets.

Remove consbuf free on console unset as unsafe, making impossible to
change buffer size after first allocation.  Instead increase default
buffer size from 8KB to 64KB and processing rate from 5Hz to 10-15Hz
to make the output more smooth.

MFC after: 1 month
sys/kern/kern_cons.c
sys/kern/tty.c
sys/sys/cons.h