vm_page.h (228156) | vm_page.h (230623) |
---|---|
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_page.h 228156 2011-11-30 17:39:00Z kib $ | 60 * $FreeBSD: head/sys/vm/vm_page.h 230623 2012-01-27 20:18:31Z kmacy $ |
61 */ 62 63/* 64 * Resident memory system definitions. 65 */ 66 67#ifndef _VM_PAGE_ 68#define _VM_PAGE_ --- 189 unchanged lines hidden (view full) --- 258 */ 259#define PG_CACHED 0x01 /* page is cached */ 260#define PG_FREE 0x02 /* page is free */ 261#define PG_FICTITIOUS 0x04 /* physical page doesn't exist (O) */ 262#define PG_ZERO 0x08 /* page is zeroed */ 263#define PG_MARKER 0x10 /* special queue marker page */ 264#define PG_SLAB 0x20 /* object pointer is actually a slab */ 265#define PG_WINATCFLS 0x40 /* flush dirty page on inactive q */ | 61 */ 62 63/* 64 * Resident memory system definitions. 65 */ 66 67#ifndef _VM_PAGE_ 68#define _VM_PAGE_ --- 189 unchanged lines hidden (view full) --- 258 */ 259#define PG_CACHED 0x01 /* page is cached */ 260#define PG_FREE 0x02 /* page is free */ 261#define PG_FICTITIOUS 0x04 /* physical page doesn't exist (O) */ 262#define PG_ZERO 0x08 /* page is zeroed */ 263#define PG_MARKER 0x10 /* special queue marker page */ 264#define PG_SLAB 0x20 /* object pointer is actually a slab */ 265#define PG_WINATCFLS 0x40 /* flush dirty page on inactive q */ |
266#define PG_NODUMP 0x80 /* don't include this page in the dump */ |
|
266 267/* 268 * Misc constants. 269 */ 270#define ACT_DECLINE 1 271#define ACT_ADVANCE 3 272#define ACT_INIT 5 273#define ACT_MAX 64 --- 71 unchanged lines hidden (view full) --- 345#define VM_ALLOC_WIRED 0x0020 /* non pageable */ 346#define VM_ALLOC_ZERO 0x0040 /* Try to obtain a zeroed page */ 347#define VM_ALLOC_RETRY 0x0080 /* Mandatory with vm_page_grab() */ 348#define VM_ALLOC_NOOBJ 0x0100 /* No associated object */ 349#define VM_ALLOC_NOBUSY 0x0200 /* Do not busy the page */ 350#define VM_ALLOC_IFCACHED 0x0400 /* Fail if the page is not cached */ 351#define VM_ALLOC_IFNOTCACHED 0x0800 /* Fail if the page is cached */ 352#define VM_ALLOC_IGN_SBUSY 0x1000 /* vm_page_grab() only */ | 267 268/* 269 * Misc constants. 270 */ 271#define ACT_DECLINE 1 272#define ACT_ADVANCE 3 273#define ACT_INIT 5 274#define ACT_MAX 64 --- 71 unchanged lines hidden (view full) --- 346#define VM_ALLOC_WIRED 0x0020 /* non pageable */ 347#define VM_ALLOC_ZERO 0x0040 /* Try to obtain a zeroed page */ 348#define VM_ALLOC_RETRY 0x0080 /* Mandatory with vm_page_grab() */ 349#define VM_ALLOC_NOOBJ 0x0100 /* No associated object */ 350#define VM_ALLOC_NOBUSY 0x0200 /* Do not busy the page */ 351#define VM_ALLOC_IFCACHED 0x0400 /* Fail if the page is not cached */ 352#define VM_ALLOC_IFNOTCACHED 0x0800 /* Fail if the page is cached */ 353#define VM_ALLOC_IGN_SBUSY 0x1000 /* vm_page_grab() only */ |
354#define VM_ALLOC_NODUMP 0x2000 /* don't include in dump */ |
|
353 354#define VM_ALLOC_COUNT_SHIFT 16 355#define VM_ALLOC_COUNT(count) ((count) << VM_ALLOC_COUNT_SHIFT) 356 357void vm_page_aflag_set(vm_page_t m, uint8_t bits); 358void vm_page_aflag_clear(vm_page_t m, uint8_t bits); 359void vm_page_busy(vm_page_t m); 360void vm_page_flash(vm_page_t m); --- 109 unchanged lines hidden --- | 355 356#define VM_ALLOC_COUNT_SHIFT 16 357#define VM_ALLOC_COUNT(count) ((count) << VM_ALLOC_COUNT_SHIFT) 358 359void vm_page_aflag_set(vm_page_t m, uint8_t bits); 360void vm_page_aflag_clear(vm_page_t m, uint8_t bits); 361void vm_page_busy(vm_page_t m); 362void vm_page_flash(vm_page_t m); --- 109 unchanged lines hidden --- |