VT: Add KD_FONT_OP_SET/GET_TALL operations
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 19 Jan 2023 15:19:16 +0000 (16:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 15:28:57 +0000 (16:28 +0100)
commit24d69384bcd34b9dcaf5dab744bf7096e84d1abd
tree2e03e5b8e4759db54ccdcb8a4969ea3705465c29
parentffc1e089725e3f8a15ddfdce283db42f7d0fa147
VT: Add KD_FONT_OP_SET/GET_TALL operations

The KD_FONT_OP_SET/GET operations hardcode vpitch to be 32 pixels,
which only dates from the old VGA hardware which as asserting this.

Drivers such as fbcon however do not have such limitation, so this
introduces KD_FONT_OP_SET/GET_TALL operations, which userland can try
to use to avoid this limitation, thus opening the patch to >32 pixels
font height.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Link: https://lore.kernel.org/r/20230119151935.013597162@ens-lyon.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c
include/uapi/linux/kd.h