summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-12-07 04:27:15 -0500
committerIan Moffett <ian@osmora.org>2024-12-07 04:27:15 -0500
commit127307827d966a0c56212e93d1d50c3b79da31ab (patch)
tree010b61fc1a76ea5e71304a94fb55d4df976a0db8 /sys/include
parentcd612d0b75e322db04625128bdb1e475d1274736 (diff)
kernel: vcache: Add impl of "local" vcaches
This commit implements local vcaches and lazy vcache migration (LZVM) for on the fly vcache type switching. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/proc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/include/sys/proc.h b/sys/include/sys/proc.h
index b10ee41..5925be8 100644
--- a/sys/include/sys/proc.h
+++ b/sys/include/sys/proc.h
@@ -39,6 +39,7 @@
#include <sys/exec.h>
#include <sys/filedesc.h>
#include <sys/signal.h>
+#include <sys/vnode.h>
#if defined(_KERNEL)
#include <machine/frame.h>
#include <machine/pcb.h>
@@ -56,6 +57,8 @@ struct proc {
struct exec_prog exec;
struct ksiginfo *ksig_list[PROC_SIGMAX];
struct filedesc *fds[PROC_MAX_FILEDES];
+ struct vcache *vcache;
+ struct spinlock vcache_lock;
struct trapframe tf;
struct pcb pcb;
size_t priority;