]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
feat: add kgetc() to console subsystem for kernel input
authorTulio A M Mendes <[email protected]>
Tue, 10 Feb 2026 05:56:54 +0000 (02:56 -0300)
committerTulio A M Mendes <[email protected]>
Tue, 10 Feb 2026 05:56:54 +0000 (02:56 -0300)
commit46ed0e29216a5158979e70f246aab3f1d5b5f7a4
treef3c6e82684d044d0d3d2a6d2696a1a1dab9b0103
parent761b8e96ab68d5b6c7e430fbb9bdaccaaf02b15f
feat: add kgetc() to console subsystem for kernel input

kgetc() reads a single character via keyboard_read_blocking(),
providing a symmetric API alongside kprintf() for output.
This enables the kernel console (and future kconsole) to have
a generic input mechanism independent of architecture.

Passes: make, cppcheck, QEMU smoke test.
include/console.h
src/kernel/console.c