summaryrefslogtreecommitdiff
path: root/sys/vm/vm_glue.c
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>2003-01-20 17:46:48 +0000
committerMatthew Dillon <dillon@FreeBSD.org>2003-01-20 17:46:48 +0000
commit2d5c7e4506e4fb6729fc22ebf44fc674d60eab79 (patch)
tree9f8f2a306dcef88eb5da009ebff53701aaaeee2b /sys/vm/vm_glue.c
parent866723162a1fd3690c0d2711b94b758a80937b23 (diff)
Notes
Diffstat (limited to 'sys/vm/vm_glue.c')
-rw-r--r--sys/vm/vm_glue.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c
index 81451c12fd78..92e100549299 100644
--- a/sys/vm/vm_glue.c
+++ b/sys/vm/vm_glue.c
@@ -121,6 +121,12 @@ static void vm_proc_swapout(struct proc *p);
/*
* MPSAFE
+ *
+ * WARNING! This code calls vm_map_check_protection() which only checks
+ * the associated vm_map_entry range. It does not determine whether the
+ * contents of the memory is actually readable or writable. In most cases
+ * just checking the vm_map_entry is sufficient within the kernel's address
+ * space.
*/
int
kernacc(addr, len, rw)
@@ -142,6 +148,12 @@ kernacc(addr, len, rw)
/*
* MPSAFE
+ *
+ * WARNING! This code calls vm_map_check_protection() which only checks
+ * the associated vm_map_entry range. It does not determine whether the
+ * contents of the memory is actually readable or writable. vmapbuf(),
+ * vm_fault_quick(), or copyin()/copout()/su*()/fu*() functions should be
+ * used in conjuction with this call.
*/
int
useracc(addr, len, rw)