3 * Copyright (C) 2000 ReactOS Team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 * PROJECT: ReactOS kernel
21 * FILE: ntoskrnl/cc/cacheman.c
22 * PURPOSE: Cache manager
23 * PROGRAMMER: David Welch (welch@cwcom.net)
24 * PORTABILITY: Checked
29 /* INCLUDES *****************************************************************/
32 #include <internal/debug.h>
34 /* FUNCTIONS *****************************************************************/
47 CcGetFlushedValidData (
48 IN PSECTION_OBJECT_POINTERS SectionObjectPointer
,
49 IN BOOLEAN BcbListHeld
89 IN PFILE_OBJECT FileObject
,
90 IN PLARGE_INTEGER FileOffset
,
102 CcSetAdditionalCacheAttributes (
103 IN PFILE_OBJECT FileObject
,
104 IN BOOLEAN DisableReadAhead
,
105 IN BOOLEAN DisableWriteBehind
116 CcSetBcbOwnerPointer (
129 CcSetDirtyPageThreshold (
130 IN PFILE_OBJECT FileObject
,
131 IN ULONG DirtyPageThreshold
142 CcSetReadAheadGranularity (
143 IN PFILE_OBJECT FileObject
,
157 IN BOOLEAN WriteThrough
,
158 IN PIO_STATUS_BLOCK IoStatus