aboutsummaryrefslogtreecommitdiff
path: root/vm/vm_page.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm/vm_page.h')
-rw-r--r--vm/vm_page.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/vm/vm_page.h b/vm/vm_page.h
index 6f4f3c22..f2e20a78 100644
--- a/vm/vm_page.h
+++ b/vm/vm_page.h
@@ -82,6 +82,7 @@ struct vm_page {
unsigned short type;
unsigned short seg_index;
unsigned short order;
+ void *priv;
/*
* This member is used throughout the code and may only change for
@@ -424,6 +425,21 @@ vm_page_direct_ptr(const struct vm_page *page)
#endif
/*
+ * Associate private data with a page.
+ */
+static inline void
+vm_page_set_priv(struct vm_page *page, void *priv)
+{
+ page->priv = priv;
+}
+
+static inline void *
+vm_page_get_priv(const struct vm_page *page)
+{
+ return page->priv;
+}
+
+/*
* Load physical memory into the vm_page module at boot time.
*
* The avail_start and avail_end parameters are used to maintain a simple