Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/sys/uio.h,v retrieving revision 1.33 retrieving revision 1.34 diff -u -p -r1.33 -r1.34 --- src/sys/sys/uio.h 2005/12/11 12:25:21 1.33 +++ src/sys/sys/uio.h 2006/03/01 12:38:32 1.34 @@ -1,4 +1,4 @@ -/* $NetBSD: uio.h,v 1.33 2005/12/11 12:25:21 christos Exp $ */ +/* $NetBSD: uio.h,v 1.34 2006/03/01 12:38:32 yamt Exp $ */ /* * Copyright (c) 1982, 1986, 1993, 1994 @@ -81,10 +81,10 @@ struct uio { int uio_iovcnt; /* number of iovecs in array */ off_t uio_offset; /* offset into file this uio corresponds to */ size_t uio_resid; /* residual i/o count */ - enum uio_seg uio_segflg; /* see above */ enum uio_rw uio_rw; /* see above */ - struct lwp *uio_lwp; /* LWP if UIO_USERSPACE */ + struct vmspace *uio_vmspace; }; +#define UIO_SETUP_SYSSPACE(uio) uio_setup_sysspace(uio) #endif /* __UIO_EXPOSE */ @@ -101,6 +101,8 @@ struct uio { MALLOC_DECLARE(M_IOV); #define UIO_SMALLIOV 8 /* 8 on stack, else malloc */ + +void uio_setup_sysspace(struct uio *); #endif #ifndef _KERNEL