vm_object.h (248449) | vm_object.h (250030) |
---|---|
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 * | 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 $ | 60 * $FreeBSD: head/sys/vm/vm_object.h 250030 2013-04-28 19:38:59Z kib $ |
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 * | 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_tmpfs - back-pointer to the tmpfs vnode, 158 * if any, which uses the vm object 159 * as backing store. The handle 160 * cannot be reused for linking, 161 * because the vnode can be 162 * reclaimed and recreated, making 163 * the handle changed and hash-chain 164 * invalid. 165 * |
|
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 { | 166 * swp_bcount - number of swap 'swblock' metablocks, each 167 * contains up to 16 swapblk assignments. 168 * see vm/swap_pager.h 169 */ 170 struct { |
171 void *swp_tmpfs; |
|
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 */ | 172 int swp_bcount; 173 } swp; 174 } un_pager; 175 struct ucred *cred; 176 vm_ooffset_t charge; 177}; 178 179/* --- 4 unchanged lines hidden (view full) --- 184#define OBJ_ACTIVE 0x0004 /* active objects */ 185#define OBJ_DEAD 0x0008 /* dead objects (during rundown) */ 186#define OBJ_NOSPLIT 0x0010 /* dont split this object */ 187#define OBJ_PIPWNT 0x0040 /* paging in progress wanted */ 188#define OBJ_MIGHTBEDIRTY 0x0100 /* object might be dirty, only for vnode */ 189#define OBJ_COLORED 0x1000 /* pg_color is defined */ 190#define OBJ_ONEMAPPING 0x2000 /* One USE (a single, non-forked) mapping flag */ 191#define OBJ_DISCONNECTWNT 0x4000 /* disconnect from vnode wanted */ |
192#define OBJ_TMPFS 0x8000 |
|
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 --- | 193 194#define IDX_TO_OFF(idx) (((vm_ooffset_t)(idx)) << PAGE_SHIFT) 195#define OFF_TO_IDX(off) ((vm_pindex_t)(((vm_ooffset_t)(off)) >> PAGE_SHIFT)) 196 197#ifdef _KERNEL 198 199#define OBJPC_SYNC 0x1 /* sync I/O */ 200#define OBJPC_INVAL 0x2 /* invalidate */ --- 92 unchanged lines hidden --- |