svn commit: r223894 - in head: . share/man/man9
Alan Cox
alc at FreeBSD.org
Sat Jul 9 19:05:29 UTC 2011
Author: alc
Date: Sat Jul 9 19:05:28 2011
New Revision: 223894
URL: http://svn.freebsd.org/changeset/base/223894
Log:
vm_map_clean() was long ago renamed to vm_map_sync(). Also, it no longer
acquires Giant.
MFC after: 1 week
Added:
head/share/man/man9/vm_map_sync.9
- copied, changed from r223890, head/share/man/man9/vm_map_clean.9
Modified:
head/ObsoleteFiles.inc
head/share/man/man9/Makefile
head/share/man/man9/vm_map.9
Modified: head/ObsoleteFiles.inc
==============================================================================
--- head/ObsoleteFiles.inc Sat Jul 9 18:47:51 2011 (r223893)
+++ head/ObsoleteFiles.inc Sat Jul 9 19:05:28 2011 (r223894)
@@ -38,6 +38,8 @@
# xargs -n1 | sort | uniq -d;
# done
+# 20110709: vm_map_clean.9 -> vm_map_sync.9
+OLD_FILES+=usr/share/man/man9/vm_map_clean.9.gz
# 20110709: Catch up with removal of these functions.
OLD_FILES+=usr/share/man/man9/vm_page_copy.9.gz
OLD_FILES+=usr/share/man/man9/vm_page_protect.9.gz
Modified: head/share/man/man9/Makefile
==============================================================================
--- head/share/man/man9/Makefile Sat Jul 9 18:47:51 2011 (r223893)
+++ head/share/man/man9/Makefile Sat Jul 9 19:05:28 2011 (r223894)
@@ -296,7 +296,6 @@ MAN= accept_filter.9 \
vm_fault_prefault.9 \
vm_map.9 \
vm_map_check_protection.9 \
- vm_map_clean.9 \
vm_map_create.9 \
vm_map_delete.9 \
vm_map_entry_resize_free.9 \
@@ -314,6 +313,7 @@ MAN= accept_filter.9 \
vm_map_simplify_entry.9 \
vm_map_stack.9 \
vm_map_submap.9 \
+ vm_map_sync.9 \
vm_map_wire.9 \
vm_page_alloc.9 \
vm_page_bits.9 \
Modified: head/share/man/man9/vm_map.9
==============================================================================
--- head/share/man/man9/vm_map.9 Sat Jul 9 18:47:51 2011 (r223893)
+++ head/share/man/man9/vm_map.9 Sat Jul 9 19:05:28 2011 (r223894)
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd September 26, 2004
+.Dd July 9, 2011
.Dt VM_MAP 9
.Os
.Sh NAME
@@ -324,7 +324,6 @@ is backed by a
.Sh SEE ALSO
.Xr pmap 9 ,
.Xr vm_map_check_protection 9 ,
-.Xr vm_map_clean 9 ,
.Xr vm_map_create 9 ,
.Xr vm_map_delete 9 ,
.Xr vm_map_entry_resize_free 9 ,
@@ -344,6 +343,7 @@ is backed by a
.Xr vm_map_simplify_entry 9 ,
.Xr vm_map_stack 9 ,
.Xr vm_map_submap 9 ,
+.Xr vm_map_sync 9 ,
.Xr vm_map_wire 9
.Sh AUTHORS
This manual page was written by
Copied and modified: head/share/man/man9/vm_map_sync.9 (from r223890, head/share/man/man9/vm_map_clean.9)
==============================================================================
--- head/share/man/man9/vm_map_clean.9 Sat Jul 9 15:24:12 2011 (r223890, copy source)
+++ head/share/man/man9/vm_map_sync.9 Sat Jul 9 19:05:28 2011 (r223894)
@@ -25,24 +25,24 @@
.\"
.\" $FreeBSD$
.\"
-.Dd July 19, 2003
-.Dt VM_MAP_CLEAN 9
+.Dd July 9, 2011
+.Dt VM_MAP_SYNC 9
.Os
.Sh NAME
-.Nm vm_map_clean
+.Nm vm_map_sync
.Nd push dirty pages to their pager
.Sh SYNOPSIS
.In sys/param.h
.In vm/vm.h
.In vm/vm_map.h
.Ft int
-.Fo vm_map_clean
+.Fo vm_map_sync
.Fa "vm_map_t map" "vm_offset_t start" "vm_offset_t end" "boolean_t syncio"
.Fa "boolean_t invalidate"
.Fc
.Sh DESCRIPTION
The
-.Fn vm_map_clean
+.Fn vm_map_sync
function forces any dirty cached pages in the range
.Fa start
to
@@ -61,13 +61,9 @@ is TRUE, any cached pages are also freed
.Pp
The range provided must be contiguous, it MUST NOT contain holes.
The range provided MUST NOT contain any sub-map entries.
-.Sh IMPLEMENTATION NOTES
-This routine holds the
-.Va Giant
-lock to prevent multiple entry.
.Sh RETURN VALUES
The
-.Fn vm_map_clean
+.Fn vm_map_sync
function returns
.Dv KERN_SUCCESS
if successful.
More information about the svn-src-head
mailing list