diff options
author | Ian Moffett <ian@osmora.org> | 2024-12-15 22:49:50 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-12-15 22:49:50 -0500 |
commit | e0928e6ddf94c25f026d02643ddd0a2016ddd17b (patch) | |
tree | edd198652dfc00466e50a4ff62beb0c0c6729abc /sys/include | |
parent | b6f2750ca8cd488ddda57380c5f5b03ed9facf45 (diff) |
kernel: synch: Add spinlock with timeout
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/sys/systm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/include/sys/systm.h b/sys/include/sys/systm.h index 1b17a06..2f870a6 100644 --- a/sys/include/sys/systm.h +++ b/sys/include/sys/systm.h @@ -31,10 +31,13 @@ #define _SYS_SYSTM_H_ #include <sys/types.h> +#include <sys/spinlock.h> #if defined(_KERNEL) int copyin(const void *uaddr, void *kaddr, size_t len); int copyout(const void *kaddr, void *uaddr, size_t len); + int copyinstr(const void *uaddr, char *kaddr, size_t len); +int spinlock_usleep(struct spinlock *lock, size_t usec_max); #endif /* _KERNEL */ #endif /* !_SYS_SYSTM_H_ */ |