summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>1999-08-12 08:22:57 +0000
committeralc <alc@FreeBSD.org>1999-08-12 08:22:57 +0000
commit0740e2b138cfca2e649c43448d5133a7662d29fa (patch)
tree80e669f42178564ccab907a712785dead641f733
parente3c495d003decab12a3fc00167b6b529c501ddb0 (diff)
downloadFreeBSD-src-0740e2b138cfca2e649c43448d5133a7662d29fa.zip
FreeBSD-src-0740e2b138cfca2e649c43448d5133a7662d29fa.tar.gz
vm_object_madvise:
Update the comments to match the implementation. Submitted by: dillon
-rw-r--r--sys/vm/vm_object.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index 70a3def..389e392 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_object.c,v 1.162 1999/08/09 10:35:05 phk Exp $
+ * $Id: vm_object.c,v 1.163 1999/08/12 06:33:56 alc Exp $
*/
/*
@@ -735,11 +735,21 @@ vm_object_pmap_remove(object, start, end)
*
* Implements the madvise function at the object/page level.
*
- * Currently, madvise() functions are limited to the default and
- * swap object types only, and also limited to only the unshared portions
- * of a process's address space. MADV_FREE, certainly, could never be
- * run on anything else. The others are more flexible and the code could
- * be adjusted in the future to handle expanded cases for them.
+ * MADV_WILLNEED (any object)
+ *
+ * Activate the specified pages if they are resident.
+ *
+ * MADV_DONTNEED (any object)
+ *
+ * Deactivate the specified pages if they are resident.
+ *
+ * MADV_FREE (OBJT_DEFAULT/OBJT_SWAP objects,
+ * OBJ_ONEMAPPING only)
+ *
+ * Deactivate and clean the specified pages if they are
+ * resident. This permits the process to reuse the pages
+ * without faulting or the kernel to reclaim the pages
+ * without I/O.
*/
void
vm_object_madvise(object, pindex, count, advise)
OpenPOWER on IntegriCloud