From d267fcf7b8c8d53a2d1807570c278cf39727eb16 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 26 Mar 2024 14:51:51 -0400 Subject: kernel: Add copyinstr() routine Signed-off-by: Ian Moffett --- sys/include/sys/system.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/include') diff --git a/sys/include/sys/system.h b/sys/include/sys/system.h index 77a6337..c2e47c2 100644 --- a/sys/include/sys/system.h +++ b/sys/include/sys/system.h @@ -35,6 +35,7 @@ #if defined(_KERNEL) int copyin(uintptr_t uaddr, void *kaddr, size_t len); int copyout(const void *kaddr, uintptr_t uaddr, size_t len); +int copyinstr(uintptr_t uaddr, char *kaddr, size_t len); #endif #endif /* !_SYS_SYSTEM_H_ */ -- cgit v1.2.3