Deleted Added
sdiff udiff text old ( 248449 ) new ( 250030 )
full compact
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 43 unchanged lines hidden (view full) ---

52 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
53 * School of Computer Science
54 * Carnegie Mellon University
55 * Pittsburgh PA 15213-3890
56 *
57 * any improvements or extensions that they make and grant Carnegie the
58 * rights to redistribute these changes.
59 *
60 * $FreeBSD: head/sys/vm/vm_object.h 248449 2013-03-18 00:25:02Z attilio $
61 */
62
63/*
64 * Virtual memory object module definitions.
65 */
66
67#ifndef _VM_OBJECT_
68#define _VM_OBJECT_

--- 80 unchanged lines hidden (view full) ---

149 */
150 struct {
151 TAILQ_HEAD(, vm_page) sgp_pglist;
152 } sgp;
153
154 /*
155 * Swap pager
156 *
157 * swp_bcount - number of swap 'swblock' metablocks, each
158 * contains up to 16 swapblk assignments.
159 * see vm/swap_pager.h
160 */
161 struct {
162 int swp_bcount;
163 } swp;
164 } un_pager;
165 struct ucred *cred;
166 vm_ooffset_t charge;
167};
168
169/*

--- 4 unchanged lines hidden (view full) ---

174#define OBJ_ACTIVE 0x0004 /* active objects */
175#define OBJ_DEAD 0x0008 /* dead objects (during rundown) */
176#define OBJ_NOSPLIT 0x0010 /* dont split this object */
177#define OBJ_PIPWNT 0x0040 /* paging in progress wanted */
178#define OBJ_MIGHTBEDIRTY 0x0100 /* object might be dirty, only for vnode */
179#define OBJ_COLORED 0x1000 /* pg_color is defined */
180#define OBJ_ONEMAPPING 0x2000 /* One USE (a single, non-forked) mapping flag */
181#define OBJ_DISCONNECTWNT 0x4000 /* disconnect from vnode wanted */
182
183#define IDX_TO_OFF(idx) (((vm_ooffset_t)(idx)) << PAGE_SHIFT)
184#define OFF_TO_IDX(off) ((vm_pindex_t)(((vm_ooffset_t)(off)) >> PAGE_SHIFT))
185
186#ifdef _KERNEL
187
188#define OBJPC_SYNC 0x1 /* sync I/O */
189#define OBJPC_INVAL 0x2 /* invalidate */

--- 92 unchanged lines hidden ---