summaryrefslogtreecommitdiffstats
path: root/sys/vm/swap_pager.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-07-18 10:26:09 +0000
committerphk <phk@FreeBSD.org>2003-07-18 10:26:09 +0000
commit5fa40a32657fa0c3bd8a986099bb65516d11e97b (patch)
treef65e135aef6b67bb4e1d27be159856b438db243f /sys/vm/swap_pager.h
parent84f9cb2fa862e169a92c4dc14584dda3a33c2a89 (diff)
downloadFreeBSD-src-5fa40a32657fa0c3bd8a986099bb65516d11e97b.zip
FreeBSD-src-5fa40a32657fa0c3bd8a986099bb65516d11e97b.tar.gz
Add a new function swap_pager_status() which reports the total size of the
paging space and how much of it is in use (in pages). Use this interface from the Linuxolator instead of groping around in the internals of the swap_pager.
Diffstat (limited to 'sys/vm/swap_pager.h')
-rw-r--r--sys/vm/swap_pager.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/swap_pager.h b/sys/vm/swap_pager.h
index 4d965a1..34d5bb1 100644
--- a/sys/vm/swap_pager.h
+++ b/sys/vm/swap_pager.h
@@ -93,7 +93,6 @@ struct swdevt {
#define SWAP_META_MASK (SWAP_META_PAGES - 1)
extern int swap_pager_full;
-extern struct blist *swapblist;
extern int vm_swap_size;
void swap_pager_putpages(vm_object_t, vm_page_t *, int, boolean_t, int *);
@@ -102,6 +101,7 @@ void swap_pager_freespace(vm_object_t, vm_pindex_t, vm_size_t);
void swap_pager_swap_init(void);
int swap_pager_isswapped(vm_object_t, int);
int swap_pager_reserve(vm_object_t, vm_pindex_t, vm_size_t);
+void swap_pager_status(int *total, int *used);
#endif /* _KERNEL */
#endif /* _VM_SWAP_PAGER_H_ */
OpenPOWER on IntegriCloud