Fri Mar 6 02:46:18 2020 UTC ()
Include "opt_uvm_page_trkown.h" for UVM_PAGE_TRKOWN.


(riastradh)
diff -r1.98 -r1.99 src/sys/uvm/uvm_page.h

cvs diff -r1.98 -r1.99 src/sys/uvm/uvm_page.h (expand / switch to unified diff)

--- src/sys/uvm/uvm_page.h 2020/02/23 15:46:43 1.98
+++ src/sys/uvm/uvm_page.h 2020/03/06 02:46:17 1.99
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: uvm_page.h,v 1.98 2020/02/23 15:46:43 ad Exp $ */ 1/* $NetBSD: uvm_page.h,v 1.99 2020/03/06 02:46:17 riastradh Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1997 Charles D. Cranor and Washington University. 4 * Copyright (c) 1997 Charles D. Cranor and Washington University.
5 * Copyright (c) 1991, 1993, The Regents of the University of California. 5 * Copyright (c) 1991, 1993, The Regents of the University of California.
6 * 6 *
7 * All rights reserved. 7 * All rights reserved.
8 * 8 *
9 * This code is derived from software contributed to Berkeley by 9 * This code is derived from software contributed to Berkeley by
10 * The Mach Operating System project at Carnegie-Mellon University. 10 * The Mach Operating System project at Carnegie-Mellon University.
11 * 11 *
12 * Redistribution and use in source and binary forms, with or without 12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions 13 * modification, are permitted provided that the following conditions
14 * are met: 14 * are met:
@@ -54,26 +54,30 @@ @@ -54,26 +54,30 @@
54 * 54 *
55 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 55 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
56 * School of Computer Science 56 * School of Computer Science
57 * Carnegie Mellon University 57 * Carnegie Mellon University
58 * Pittsburgh PA 15213-3890 58 * Pittsburgh PA 15213-3890
59 * 59 *
60 * any improvements or extensions that they make and grant Carnegie the 60 * any improvements or extensions that they make and grant Carnegie the
61 * rights to redistribute these changes. 61 * rights to redistribute these changes.
62 */ 62 */
63 63
64#ifndef _UVM_UVM_PAGE_H_ 64#ifndef _UVM_UVM_PAGE_H_
65#define _UVM_UVM_PAGE_H_ 65#define _UVM_UVM_PAGE_H_
66 66
 67#ifdef _KERNEL_OPT
 68#include "opt_uvm_page_trkown.h"
 69#endif
 70
67#include <uvm/uvm_extern.h> 71#include <uvm/uvm_extern.h>
68#include <uvm/uvm_pglist.h> 72#include <uvm/uvm_pglist.h>
69 73
70/* 74/*
71 * Management of resident (logical) pages. 75 * Management of resident (logical) pages.
72 * 76 *
73 * Each resident page has a vm_page structure, indexed by page number. 77 * Each resident page has a vm_page structure, indexed by page number.
74 * There are several lists in the structure: 78 * There are several lists in the structure:
75 * 79 *
76 * - A red-black tree rooted with the containing object is used to 80 * - A red-black tree rooted with the containing object is used to
77 * quickly perform object+offset lookups. 81 * quickly perform object+offset lookups.
78 * - A list of all pages for a given object, for a quick deactivation 82 * - A list of all pages for a given object, for a quick deactivation
79 * at a time of deallocation. 83 * at a time of deallocation.