summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-07-26 15:14:17 -0400
committerIan Moffett <ian@osmora.org>2025-07-26 15:14:17 -0400
commit6b3c37f5bc9dbd3656ee08b925f2df2d233084fe (patch)
treed7d6666eb4e9e9cb6e99c0737d4278c64024fd62 /sys/include
parent15c4ee1321be918d8fcbc8d858ea90a4dabe54a5 (diff)
kernel: vsr: Add 'td' argument for most funcsexpt
Allow specification of which process should be targeted for specific operations. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/vsr.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/include/sys/vsr.h b/sys/include/sys/vsr.h
index 88cb659..e63cce1 100644
--- a/sys/include/sys/vsr.h
+++ b/sys/include/sys/vsr.h
@@ -39,6 +39,8 @@
#include <sys/mutex.h>
#endif /* _KERNEL */
+struct proc;
+
#define VSR_FILE 0x00000000 /* Represented by file */
/*
@@ -152,12 +154,12 @@ struct vsr_domain {
struct vsr_table table;
};
-void vsr_init_domains(void);
-void vsr_destroy_domains(void);
+void vsr_init_domains(struct proc *td);
+void vsr_destroy_domains(struct proc *td);
-struct vsr_domain *vsr_new_domain(vsr_domain_t type);
-struct vsr_capsule *vsr_new_capsule(vsr_domain_t type, const char *name);
-struct vsr_capsule *vsr_lookup_capsule(vsr_domain_t type, const char *name);
+struct vsr_domain *vsr_new_domain(struct proc *td, vsr_domain_t type);
+struct vsr_capsule *vsr_new_capsule(struct proc *td, vsr_domain_t type, const char *name);
+struct vsr_capsule *vsr_lookup_capsule(struct proc *td, vsr_domain_t type, const char *name);
#endif /* _KERNEL */
#endif /* !_SYS_VSR_H_ */