aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_subr.c
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2002-05-05 22:42:40 +0000
committerAlan Cox <alc@FreeBSD.org>2002-05-05 22:42:40 +0000
commitc50fe92b8dc1b0867eaaeee365f6b5d0f4ff5217 (patch)
tree4e87dd351b17930f56533e0894592672655adab2 /sys/kern/kern_subr.c
parentcae2a33cf0a5e0e9a2ff9a27a4ac8c32356c92c9 (diff)
downloadsrc-c50fe92b8dc1b0867eaaeee365f6b5d0f4ff5217.tar.gz
src-c50fe92b8dc1b0867eaaeee365f6b5d0f4ff5217.zip
o Condition the compilation of uiomoveco() and vm_uiomove()
on ENABLE_VFS_IOOPT. o Add a comment to the effect that this code is experimental support for zero-copy I/O.
Notes
Notes: svn path=/head/; revision=96080
Diffstat (limited to 'sys/kern/kern_subr.c')
-rw-r--r--sys/kern/kern_subr.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c
index 9f2ede2d4c95..73aa75bbef89 100644
--- a/sys/kern/kern_subr.c
+++ b/sys/kern/kern_subr.c
@@ -134,6 +134,10 @@ out:
return (error);
}
+#ifdef ENABLE_VFS_IOOPT
+/*
+ * Experimental support for zero-copy I/O
+ */
int
uiomoveco(cp, n, uio, obj)
caddr_t cp;
@@ -207,8 +211,9 @@ uiomoveco(cp, n, uio, obj)
return (0);
}
-#ifdef ENABLE_VFS_IOOPT
-
+/*
+ * Experimental support for zero-copy I/O
+ */
int
uioread(n, uio, obj, nread)
int n;
@@ -274,7 +279,6 @@ uioread(n, uio, obj, nread)
}
return error;
}
-
#endif
/*