mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:28:11 +00:00
Kernel: Introduce global variables and stats in /sys/kernel directory
The ProcFS is an utter mess currently, so let's start move things that are not related to processes-info. To ensure it's done in a sane manner, we start by duplicating all /proc/ global nodes to the /sys/kernel/ directory, then we will move Userland to use the new directory so the old directory nodes can be removed from the /proc directory.
This commit is contained in:
parent
db2e1bfa02
commit
a91589c09b
58 changed files with 2122 additions and 1 deletions
|
@ -14,7 +14,9 @@
|
|||
#include <Kernel/Sections.h>
|
||||
#include <Kernel/kstdio.h>
|
||||
|
||||
static Kernel::Spinlock g_console_lock { LockRank::None };
|
||||
namespace Kernel {
|
||||
|
||||
Spinlock g_console_lock { LockRank::None };
|
||||
|
||||
UNMAP_AFTER_INIT NonnullLockRefPtr<ConsoleDevice> ConsoleDevice::must_create()
|
||||
{
|
||||
|
@ -60,3 +62,5 @@ void ConsoleDevice::put_char(char ch)
|
|||
dbgputchar(ch);
|
||||
m_logbuffer.enqueue(ch);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue