--- src/sys/kern/kern_subr.c 2004/10/25 19:14:32 1.19 +++ src/sys/kern/kern_subr.c 2004/11/09 17:52:45 1.20 @@ -49,6 +49,8 @@ #include #include #include +#include +#include #include #include @@ -56,6 +58,9 @@ #include #include +SYSCTL_INT(_kern, KERN_IOV_MAX, iov_max, CTLFLAG_RD, NULL, UIO_MAXIOV, + "Maximum number of elements in an I/O vector; sysconf(_SC_IOV_MAX)"); + /* * UIO_READ: copy the kernelspace cp to the user or kernelspace UIO * UIO_WRITE: copy the user or kernelspace UIO to cp