aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/procfs_subr.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-05-23 21:42:24 -0400
committerIan Moffett <ian@osmora.org>2024-05-23 21:42:24 -0400
commita1b41f955c3082ac6b05f578e2d9aa9e427a2271 (patch)
tree84fd57bdf13649f2af437949902c4ff1f03cab3b /sys/fs/procfs_subr.c
parent887c6fbd2d137d848afea56d8216e630c7796311 (diff)
kernel: syslog: Add kernel message buffer
This commit introduces the kernel message buffer and makes system messages no longer be written to the TTY after kernel init. The kernel message buffer can be read from /proc/kmsg Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/fs/procfs_subr.c')
-rw-r--r--sys/fs/procfs_subr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/procfs_subr.c b/sys/fs/procfs_subr.c
index c1d77ba..8b95919 100644
--- a/sys/fs/procfs_subr.c
+++ b/sys/fs/procfs_subr.c
@@ -29,6 +29,7 @@
#include <sys/panic.h>
#include <sys/intr.h>
+#include <sys/syslog.h>
#include <machine/cpu.h>
#include <fs/procfs.h>
#include <vm/vm.h>
@@ -109,4 +110,5 @@ procfs_populate(void)
procfs_add_entry("memstat", memstat);
intr_init_proc();
+ syslog_init_proc();
}