]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/misc_protos.h
xnu-4903.221.2.tar.gz
[apple/xnu.git] / osfmk / kern / misc_protos.h
index 63eb58c09e36d2c1791335e6d01cdf18905d283c..74a0a7d631750e49120a7c0a81c3ead7876408e3 100644 (file)
@@ -46,6 +46,7 @@
 #include <mach/machine/vm_types.h>
 #include <ipc/ipc_types.h>
 #include <kern/debug.h>
+#include <libkern/copyio.h>
 
 #ifndef MIN
 #define MIN(a,b) (((a)<(b))?(a):(b))
@@ -85,12 +86,6 @@ extern int testbit(
        int             which,
        int             *bitmap);
 
-/* Move arbitrarily-aligned data from a user space to kernel space */
-extern int copyin(
-       const user_addr_t   user_addr,
-       char                *kernel_addr,
-       vm_size_t           nbytes);
-
 /* Move an aligned 32 or 64-bit word from user space to kernel space
  * using a single read instruction
  *
@@ -116,12 +111,6 @@ extern int copyinmsg(
        char                *kernel_addr,
        mach_msg_size_t     nbytes);
 
-/* Move arbitrarily-aligned data from a kernel space to user space */
-extern int copyout(
-       const void      *kernel_addr,
-       user_addr_t     user_addr,
-       vm_size_t       nbytes);
-
 /* Move arbitrarily-aligned data from a kernel space to user space */
 extern int copyoutmsg(
        const char      *kernel_addr,