From a8b2282eb88f24c3c5f461e1557fa2cf76ebc251 Mon Sep 17 00:00:00 2001 From: turret Date: Sun, 19 Nov 2023 18:57:55 -0600 Subject: Initial commit - create subsystem system using clone syscall, shared memory, shared file descriptors - printk-like logging facility (TODO: console loglevel) - initcall system (like linux kernel) TODO: determine license factors: linker.ld, linux kernel licensing (some ideas are more liberally taken rather than paraphrased) --- include/subsys.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 include/subsys.h (limited to 'include/subsys.h') diff --git a/include/subsys.h b/include/subsys.h new file mode 100644 index 0000000..1515293 --- /dev/null +++ b/include/subsys.h @@ -0,0 +1,7 @@ +#ifndef __SUBSYS_H +#define __SUBSYS_H + +int __impl_start_subsystem(char *name, int (*fn)(void)); +#define start_subsystem(fn) __impl_start_subsystem(#fn, fn) + +#endif -- cgit v1.2.3