reactos/ntoskrnl/cc
Pierre Schweitzer e806d16b06
[NTOSKRNL] Warn about unimplemented feature in CcMapData() (in all callers)
Currently, our CcMapData() behavior (same goes for CcPinRead()) is broken
and is the total opposite of what Windows kernel does. By default, the later
will let you map a view in memory without even attempting to bring its
data in memory. On first access, there will be a fault and memory will
be read from the hardware and brought to memory. If you want to force read
on mapping/pinning, you have to set the MAP_NO_READ (or PIN_NO_READ) flag
where kernel will fault on your behalf (hence the need for MAP_WAIT/PIN_WAIT).

On ReactOS, by default, on mapping (and thus pinning), we will force a view
read so that data is in memory. The way our cache memory is managed at the
moment seems not to allow to fault on invalid access and if we don't force
read, the memory content will just be zeroed.
So trying to match Windows behavior, by default, now CcMapData() will enforce
the MAP_NO_READ flag and warn once about this behavior change.
2018-08-31 19:48:32 +02:00
..
cacheman.c [NTOS:CC] Use UNIMPLEMENTED_ONCE instead of custom code 2018-04-07 12:00:10 +02:00
copy.c [NTOSKRNL] Be noisy when deferring writes. 2018-07-15 09:57:16 +02:00
fs.c [NTOSKRNL] Drop the VACB lock. 2018-04-15 22:52:53 +02:00
lazywrite.c [NTOSKRNL] Optimize a bit deferred writes. 2018-05-02 23:33:45 +02:00
mdl.c Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
pin.c [NTOSKRNL] Warn about unimplemented feature in CcMapData() (in all callers) 2018-08-31 19:48:32 +02:00
view.c [NTOS:CC] Access SectionObjectPointers without lock in CcRosInitializeFileCache. CORE-14691 2018-06-05 16:24:13 +02:00