summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruwe <uwe@openbsd.org>2005-11-16 15:15:49 +0000
committeruwe <uwe@openbsd.org>2005-11-16 15:15:49 +0000
commit19c223fc0727925b260718149b40c3886ab0bc6d (patch)
tree5e3e6ea22007d68748dfaf1cc718cf26fa27ceae
parentnuke trailing whitespace; (diff)
downloadwireguard-openbsd-19c223fc0727925b260718149b40c3886ab0bc6d.tar.xz
wireguard-openbsd-19c223fc0727925b260718149b40c3886ab0bc6d.zip
Suggest filling in uio_procp even if the area is in kernel-space if
the structure is passed to functions other than uiomove(); discussed with pedro@
-rw-r--r--share/man/man9/uiomove.914
-rw-r--r--sys/sys/uio.h4
2 files changed, 12 insertions, 6 deletions
diff --git a/share/man/man9/uiomove.9 b/share/man/man9/uiomove.9
index 6b889b66baa..72cf3c59bfe 100644
--- a/share/man/man9/uiomove.9
+++ b/share/man/man9/uiomove.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: uiomove.9,v 1.9 2005/02/14 18:44:21 jmc Exp $
+.\" $OpenBSD: uiomove.9,v 1.10 2005/11/16 15:15:49 uwe Exp $
.\" $NetBSD: uiomove.9,v 1.6 2001/12/26 00:16:30 wiz Exp $
.\"
.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@ struct uio {
size_t uio_resid; /* residual i/o count */
enum uio_seg uio_segflg;
enum uio_rw uio_rw;
- struct proc *uio_procp;/* process if UIO_USERSPACE */
+ struct proc *uio_procp;/* associated process or NULL */
};
.Ed
.Pp
@@ -99,8 +99,14 @@ A flag indicating whether the space described is in user-space
A flag indicating whether data should be read into the space
(UIO_READ) or written from the space (UIO_WRITE).
.It uio_procp
-A pointer to the process whose data area is described by the
-structure, or NULL if the area is in kernel-space.
+A pointer to a process whose data area is described by the
+structure, or which is having the I/O done on its behalf if
+the area is in kernel-space.
+.Nm uiomove
+itself does not use this field if the area is in kernel-space,
+but other functions that take a
+.Fa struct uio
+may depend on this information.
.El
.Pp
The value of
diff --git a/sys/sys/uio.h b/sys/sys/uio.h
index c704cce675e..0dde7978a52 100644
--- a/sys/sys/uio.h
+++ b/sys/sys/uio.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uio.h,v 1.11 2003/06/02 23:28:22 millert Exp $ */
+/* $OpenBSD: uio.h,v 1.12 2005/11/16 15:15:49 uwe Exp $ */
/* $NetBSD: uio.h,v 1.12 1996/02/09 18:25:45 christos Exp $ */
/*
@@ -56,7 +56,7 @@ struct uio {
size_t uio_resid; /* residual i/o count */
enum uio_seg uio_segflg; /* see above */
enum uio_rw uio_rw; /* see above */
- struct proc *uio_procp;/* process if UIO_USERSPACE */
+ struct proc *uio_procp;/* associated process or NULL */
};
/*