From 6b3c37f5bc9dbd3656ee08b925f2df2d233084fe Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 26 Jul 2025 15:14:17 -0400 Subject: kernel: vsr: Add 'td' argument for most funcs Allow specification of which process should be targeted for specific operations. Signed-off-by: Ian Moffett --- sys/include/sys/vsr.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'sys/include') 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 #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_ */ -- cgit v1.2.3