From d1ff7bcc91886626dc9060ec5fb67ee102ab7c1d Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Mon, 11 Mar 2024 21:30:31 -0400 Subject: usermode capable kernel with logging syscall --- io/log.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 io/log.h (limited to 'io/log.h') diff --git a/io/log.h b/io/log.h new file mode 100644 index 0000000..ad1526d --- /dev/null +++ b/io/log.h @@ -0,0 +1,22 @@ +#ifndef JOVE_IO_LOG_H +#define JOVE_IO_LOG_H 1 + +#include + +struct LogDevice +{ + void (*out)(const char*, size_t); + struct LogDevice *chain; +}; + +void klog_newdev(struct LogDevice *dev); + +void klogc(char c); +void klogs(const char *s); +void klogsn(const char *s, size_t len); + +#include +void kvlogf(const char *fmt, va_list ap); +void klogf(const char *fmt, ...); + +#endif -- cgit v1.2.1