summaryrefslogtreecommitdiff
path: root/src/sys/include/os/systm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/include/os/systm.h')
-rw-r--r--src/sys/include/os/systm.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sys/include/os/systm.h b/src/sys/include/os/systm.h
index 33de08a..24f21db 100644
--- a/src/sys/include/os/systm.h
+++ b/src/sys/include/os/systm.h
@@ -33,6 +33,18 @@
#include <sys/types.h>
/*
+ * Copy userland string to kernel space safely
+ *
+ * @uaddr: Userspace source address to copy from
+ * @kaddr: Kernel address dest address to copy to
+ * @len: Length of buffer
+ *
+ * Returns 0 on success, otherwise a less than zero value
+ * on failure.
+ */
+int copyinstr(const void *uaddr, char *kaddr, size_t len);
+
+/*
* Copy userland data to kernel space safely
*
* @uaddr: Userspace source address to copy from