diff options
author | Ian Moffett <ian@osmora.org> | 2024-05-23 21:42:24 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-05-23 21:42:24 -0400 |
commit | a1b41f955c3082ac6b05f578e2d9aa9e427a2271 (patch) | |
tree | 84fd57bdf13649f2af437949902c4ff1f03cab3b /sys/include | |
parent | 887c6fbd2d137d848afea56d8216e630c7796311 (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/include')
-rw-r--r-- | sys/include/sys/syslog.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/include/sys/syslog.h b/sys/include/sys/syslog.h index 3015f6b..12febbc 100644 --- a/sys/include/sys/syslog.h +++ b/sys/include/sys/syslog.h @@ -34,6 +34,7 @@ #ifndef _SYS_SYSLOG_H_ #define _SYS_SYSLOG_H_ +#include <sys/types.h> #include <stdarg.h> #include <dev/vcons/vcons.h> @@ -56,10 +57,12 @@ kprintf(__VA_ARGS__); void syslog_init(void); +void syslog_init_proc(void); void kprintf(const char *fmt, ...); void vkprintf(const char *fmt, va_list *ap); extern struct vcons_screen g_syslog_screen; +extern bool g_syslog_use_tty; #endif /* defined(_KERNEL) */ |