summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-11-09 05:25:35 +0000
committeralc <alc@FreeBSD.org>2003-11-09 05:25:35 +0000
commit269cf5aa09e2841892619641efd73d79b0c7503a (patch)
treebd200432449621c47dc3d9215eac5e23df813e31 /sys/vm/vm_object.h
parent3f532e652b08331243d297085d4f13318e94f586 (diff)
downloadFreeBSD-src-269cf5aa09e2841892619641efd73d79b0c7503a.zip
FreeBSD-src-269cf5aa09e2841892619641efd73d79b0c7503a.tar.gz
- Rename vm_map_clean() to vm_map_sync(). This better reflects the fact
that msync(2) is its only caller. - Migrate the parts of the old vm_map_clean() that examined the internals of a vm object to a new function vm_object_sync() that is implemented in vm_object.c. At the same, introduce the necessary vm object locking so that vm_map_sync() and vm_object_sync() can be called without Giant. Reviewed by: tegge
Diffstat (limited to 'sys/vm/vm_object.h')
-rw-r--r--sys/vm/vm_object.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h
index 96d8666..bd4f44d 100644
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -216,6 +216,8 @@ void vm_object_reference (vm_object_t);
void vm_object_reference_locked(vm_object_t);
void vm_object_shadow (vm_object_t *, vm_ooffset_t *, vm_size_t);
void vm_object_split(vm_map_entry_t);
+void vm_object_sync(vm_object_t, vm_ooffset_t, vm_size_t, boolean_t,
+ boolean_t);
void vm_object_madvise (vm_object_t, vm_pindex_t, int, int);
#endif /* _KERNEL */
OpenPOWER on IntegriCloud