swap_pager.h (5455) | swap_pager.h (6129) |
---|---|
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.3 1994/10/09 01:52:06 phk Exp $ | 39 * $Id: swap_pager.h,v 1.4 1995/01/09 16:05:37 davidg 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_ --- 16 unchanged lines hidden (view full) --- 64typedef struct swblock *sw_blk_t; 65 66/* 67 * Swap pager private data. 68 */ 69struct swpager { 70 vm_size_t sw_osize; /* size of object we are backing (bytes) */ 71 int sw_nblocks; /* number of blocks in list (sw_blk_t units) */ | 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_ --- 16 unchanged lines hidden (view full) --- 64typedef struct swblock *sw_blk_t; 65 66/* 67 * Swap pager private data. 68 */ 69struct swpager { 70 vm_size_t sw_osize; /* size of object we are backing (bytes) */ 71 int sw_nblocks; /* number of blocks in list (sw_blk_t units) */ |
72 int sw_allocsize; /* amount of space actually allocated */ |
|
72 sw_blk_t sw_blocks; /* pointer to list of swap blocks */ 73 short sw_flags; /* flags */ 74 short sw_poip; /* pageouts in progress */ 75 short sw_piip; /* pageins in progress */ 76}; 77typedef struct swpager *sw_pager_t; 78 79#define SW_WANTED 0x01 --- 22 unchanged lines hidden --- | 73 sw_blk_t sw_blocks; /* pointer to list of swap blocks */ 74 short sw_flags; /* flags */ 75 short sw_poip; /* pageouts in progress */ 76 short sw_piip; /* pageins in progress */ 77}; 78typedef struct swpager *sw_pager_t; 79 80#define SW_WANTED 0x01 --- 22 unchanged lines hidden --- |