diff options
author | Alan Cox <alc@FreeBSD.org> | 1999-08-12 08:22:57 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 1999-08-12 08:22:57 +0000 |
commit | 193b935887dd90ed5522cd15e3db224407316b5c (patch) | |
tree | 3449fc59a2e481c4c9ea9ffc99b8935e9015a3b1 /sys | |
parent | 58b4e6cc84d76f15d264fb959b50d9071a24d14e (diff) | |
download | src-193b935887dd90ed5522cd15e3db224407316b5c.tar.gz src-193b935887dd90ed5522cd15e3db224407316b5c.zip |
vm_object_madvise:
Update the comments to match the implementation.
Submitted by: dillon
Notes
Notes:
svn path=/head/; revision=49655
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/vm_object.c | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 70a3defabef3..389e3921b564 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) |