summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-01-03 16:23:12 +0000
committerphk <phk@FreeBSD.org>2003-01-03 16:23:12 +0000
commitb884c995dbabefd65829684e2d99e0d31d271447 (patch)
treec7aa39b6ef241e6540b183e8f18346cfdf2952f7 /sys/vm
parent88bd74d1841dba3f36f98fb64c7e2a630af3489f (diff)
downloadFreeBSD-src-b884c995dbabefd65829684e2d99e0d31d271447.zip
FreeBSD-src-b884c995dbabefd65829684e2d99e0d31d271447.tar.gz
Make struct swblock kernel only, to make vm/swap_pager.h userland includable.
Move struct swdevt from sys/conf.h to the more appropriate vm/swap_pager.h. Adjust #include use in libkvm and pstat(8) to match.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/swap_pager.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/vm/swap_pager.h b/sys/vm/swap_pager.h
index 23fc085..3593ed3 100644
--- a/sys/vm/swap_pager.h
+++ b/sys/vm/swap_pager.h
@@ -48,6 +48,24 @@
#define _VM_SWAP_PAGER_H_ 1
/*
+ * Swap device table
+ */
+struct swdevt {
+ udev_t sw_dev; /* For quasibogus swapdev reporting */
+ int sw_flags;
+ int sw_nblks;
+ int sw_used;
+ struct vnode *sw_vp;
+ dev_t sw_device;
+};
+#define SW_FREED 0x01
+#define SW_SEQUENTIAL 0x02
+#define SW_CLOSING 0x04
+#define sw_freed sw_flags /* XXX compat */
+
+#ifdef _KERNEL
+
+/*
* SWB_NPAGES must be a power of 2. It may be set to 1, 2, 4, 8, or 16
* pages per allocation. We recommend you stick with the default of 8.
* The 16-page limit is due to the radix code (kern/subr_blist.c).
@@ -78,7 +96,6 @@ struct swblock {
daddr_t swb_pages[SWAP_META_PAGES];
};
-#ifdef _KERNEL
extern struct pagerlst swap_pager_un_object_list;
extern int swap_pager_full;
extern struct blist *swapblist;
OpenPOWER on IntegriCloud