swap_pager.h (bf25be48a512ea4d880d73c4c7cb84133ebc22d5) | swap_pager.h (cd41fc123ea3ae3bdc43c65f4fcdeb07f27059f8) |
---|---|
1/* 2 * Copyright (c) 1990 University of Utah. 3 * Copyright (c) 1991 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the Systems Programming Group of the University of Utah Computer 8 * Science Department. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * from: @(#)swap_pager.h 7.1 (Berkeley) 12/5/90 | 1/* 2 * Copyright (c) 1990 University of Utah. 3 * Copyright (c) 1991 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the Systems Programming Group of the University of Utah Computer 8 * Science Department. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * from: @(#)swap_pager.h 7.1 (Berkeley) 12/5/90 |
39 * $Id: swap_pager.h,v 1.8 1995/07/16 13:28:35 davidg Exp $ | 39 * $Id: swap_pager.h,v 1.9 1995/08/16 16:14:25 bde Exp $ |
40 */ 41 42/* 43 * Modifications to the block allocation data structure by John S. Dyson 44 * 18 Dec 93. 45 */ 46 47#ifndef _SWAP_PAGER_ --- 12 unchanged lines hidden (view full) --- 60 unsigned short swb_valid; /* bitmask for valid pages */ 61 unsigned short swb_locked; /* block locked */ 62 int swb_block[SWB_NPAGES]; /* unfortunately int instead of daddr_t */ 63}; 64typedef struct swblock *sw_blk_t; 65 66#ifdef KERNEL 67extern struct pagerlst swap_pager_un_object_list; | 40 */ 41 42/* 43 * Modifications to the block allocation data structure by John S. Dyson 44 * 18 Dec 93. 45 */ 46 47#ifndef _SWAP_PAGER_ --- 12 unchanged lines hidden (view full) --- 60 unsigned short swb_valid; /* bitmask for valid pages */ 61 unsigned short swb_locked; /* block locked */ 62 int swb_block[SWB_NPAGES]; /* unfortunately int instead of daddr_t */ 63}; 64typedef struct swblock *sw_blk_t; 65 66#ifdef KERNEL 67extern struct pagerlst swap_pager_un_object_list; |
68extern int swap_pager_full; |
|
68 69void swap_pager_init __P((void)); 70vm_object_t swap_pager_alloc __P((void *, vm_size_t, vm_prot_t, vm_offset_t)); 71void swap_pager_dealloc __P((vm_object_t)); 72int swap_pager_getpages __P((vm_object_t, vm_page_t *, int, int)); 73int swap_pager_putpages __P((vm_object_t, vm_page_t *, int, boolean_t, int *)); 74boolean_t swap_pager_haspage __P((vm_object_t, vm_offset_t, int *, int *)); 75void swap_pager_sync __P((void)); 76void swap_pager_iodone __P((struct buf *)); 77int swap_pager_swp_alloc __P((vm_object_t, int)); 78void swap_pager_copy __P((vm_object_t, vm_offset_t, vm_object_t, vm_offset_t, vm_offset_t)); 79void swap_pager_freespace __P((vm_object_t, vm_offset_t, vm_offset_t)); 80void swap_pager_swap_init __P((void)); 81#endif 82 83#endif /* _SWAP_PAGER_ */ | 69 70void swap_pager_init __P((void)); 71vm_object_t swap_pager_alloc __P((void *, vm_size_t, vm_prot_t, vm_offset_t)); 72void swap_pager_dealloc __P((vm_object_t)); 73int swap_pager_getpages __P((vm_object_t, vm_page_t *, int, int)); 74int swap_pager_putpages __P((vm_object_t, vm_page_t *, int, boolean_t, int *)); 75boolean_t swap_pager_haspage __P((vm_object_t, vm_offset_t, int *, int *)); 76void swap_pager_sync __P((void)); 77void swap_pager_iodone __P((struct buf *)); 78int swap_pager_swp_alloc __P((vm_object_t, int)); 79void swap_pager_copy __P((vm_object_t, vm_offset_t, vm_object_t, vm_offset_t, vm_offset_t)); 80void swap_pager_freespace __P((vm_object_t, vm_offset_t, vm_offset_t)); 81void swap_pager_swap_init __P((void)); 82#endif 83 84#endif /* _SWAP_PAGER_ */ |