Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/yamt-pagecache]: src/sys/uvm comments
details: https://anonhg.NetBSD.org/src/rev/c168b07851d7
branches: yamt-pagecache
changeset: 770866:c168b07851d7
user: yamt <yamt%NetBSD.org@localhost>
date: Tue Jan 24 02:11:33 2012 +0000
description:
comments
diffstat:
sys/uvm/uvm_page_status.c | 30 ++++++++++++++++++++++++++++--
1 files changed, 28 insertions(+), 2 deletions(-)
diffs (79 lines):
diff -r 0a404d5c9c75 -r c168b07851d7 sys/uvm/uvm_page_status.c
--- a/sys/uvm/uvm_page_status.c Tue Jan 24 02:10:47 2012 +0000
+++ b/sys/uvm/uvm_page_status.c Tue Jan 24 02:11:33 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_page_status.c,v 1.1.2.6 2012/01/18 02:09:06 yamt Exp $ */
+/* $NetBSD: uvm_page_status.c,v 1.1.2.7 2012/01/24 02:11:33 yamt Exp $ */
/*-
* Copyright (c)2011 YAMAMOTO Takashi,
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page_status.c,v 1.1.2.6 2012/01/18 02:09:06 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page_status.c,v 1.1.2.7 2012/01/24 02:11:33 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -52,6 +52,8 @@
/*
* uvm_pagegetdirty: return the dirtiness status (one of UVM_PAGE_STATUS_
* values) of the page.
+ *
+ * called with the owner locked.
*/
unsigned int
@@ -82,6 +84,13 @@
/*
* uvm_pagemarkdirty: set the dirtiness status (one of UVM_PAGE_STATUS_ values)
* of the page.
+ *
+ * called with the owner locked.
+ *
+ * update the radix tree tag for object-owned page.
+ *
+ * if new status is UVM_PAGE_STATUS_UNKNOWN, clear pmap-level dirty bit
+ * so that later uvm_pagecheckdirty() can notice modifications on the page.
*/
void
@@ -133,6 +142,11 @@
* uvm_pagecheckdirty: check if page is dirty, and remove its dirty-marks.
*
* called with the owner locked.
+ *
+ * returns if the page was dirty.
+ *
+ * if protected is true, mark the page CLEAN. otherwise, mark the page UNKNOWN.
+ * ("mark" in the sense of uvm_pagemarkdirty().)
*/
bool
@@ -181,6 +195,12 @@
return modified;
}
+/*
+ * uvm_cpu_get: get a pointer to the uvm per-cpu area.
+ *
+ * XXX this should not be here.
+ */
+
struct uvm_cpu *
uvm_cpu_get(void)
{
@@ -189,6 +209,12 @@
return curcpu()->ci_data.cpu_uvm;
}
+/*
+ * uvm_cpu_put: put a pointer to the uvm per-cpu area.
+ *
+ * XXX this should not be here.
+ */
+
void
uvm_cpu_put(struct uvm_cpu *ucpu)
{
Home |
Main Index |
Thread Index |
Old Index