-int copystr(const void *kfaddr, void *kdaddr, size_t len, size_t *done);
-int copyinstr(const user_addr_t uaddr, void *kaddr, size_t len, size_t *done);
-int copyoutstr(const void *kaddr, user_addr_t udaddr, size_t len, size_t *done);
-int copyin(const user_addr_t uaddr, void *kaddr, size_t len);
-int copyout(const void *kaddr, user_addr_t udaddr, size_t len);
+#if XNU_KERNEL_PRIVATE
+#if KASAN
+uint16_t __nosan_crc16(uint16_t crc, const void *bufp, size_t len);
+#else
+static inline uint16_t
+__nosan_crc16(uint16_t crc, const void *bufp, size_t len)
+{
+ return crc16(crc, bufp, len);
+}
+#endif
+#endif
+
+int copystr(const void *kfaddr, void *kdaddr, size_t len, size_t *done);
+int copyinstr(const user_addr_t uaddr, void *kaddr, size_t len, size_t *done) OS_WARN_RESULT;
+int copyoutstr(const void *kaddr, user_addr_t udaddr, size_t len, size_t *done);
+#if XNU_KERNEL_PRIVATE
+int copyin_atomic32(const user_addr_t user_addr, uint32_t *u32);
+int copyin_atomic32_wait_if_equals(const user_addr_t user_addr, uint32_t u32);
+int copyin_atomic64(const user_addr_t user_addr, uint64_t *u64);
+int copyout_atomic32(uint32_t u32, user_addr_t user_addr);
+int copyout_atomic64(uint64_t u64, user_addr_t user_addr);
+int copyoutstr_prevalidate(const void *kaddr, user_addr_t uaddr, size_t len);
+#endif