summaryrefslogtreecommitdiff
path: root/vm/vm_page.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm/vm_page.h')
-rw-r--r--vm/vm_page.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/vm/vm_page.h b/vm/vm_page.h
index 4e870d82..6f4f3c22 100644
--- a/vm/vm_page.h
+++ b/vm/vm_page.h
@@ -162,8 +162,6 @@ extern
queue_head_t vm_page_queue_inactive; /* inactive memory queue */
extern
-int vm_page_free_count; /* How many pages are free? */
-extern
int vm_page_fictitious_count;/* How many fictitious pages are free? */
extern
int vm_page_active_count; /* How many pages are active? */
@@ -483,12 +481,16 @@ struct vm_page * vm_page_lookup_pa(phys_addr_t pa);
*
* The selector is used to determine the segments from which allocation can
* be attempted.
+ *
+ * This function should only be used by the vm_resident module.
*/
struct vm_page * vm_page_alloc_pa(unsigned int order, unsigned int selector,
unsigned short type);
/*
* Release a block of 2^order physical pages.
+ *
+ * This function should only be used by the vm_resident module.
*/
void vm_page_free_pa(struct vm_page *page, unsigned int order);
@@ -507,4 +509,12 @@ void vm_page_info_all(void);
*/
phys_addr_t vm_page_mem_size(void);
+/*
+ * Return the amount of free (unused) pages.
+ *
+ * XXX This currently relies on the kernel being non preemptible and
+ * uniprocessor.
+ */
+unsigned long vm_page_mem_free(void);
+
#endif /* _VM_VM_PAGE_H_ */