1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 16:15:10 +00:00

Expose the kernel log buffer through /proc/dmesg.

Also add a /bin/dmesg program for convenience.
This commit is contained in:
Andreas Kling 2019-01-28 22:40:55 +01:00
parent 442351a5f8
commit 7455f5ea42
8 changed files with 77 additions and 0 deletions

View file

@ -52,6 +52,7 @@ void Console::put_char(char ch)
//if (ch != 27)
IO::out8(0xe9, ch);
#endif
m_logbuffer.enqueue(ch);
if (m_implementation)
m_implementation->on_sysconsole_receive(ch);
}