* How to really write-protect a page
@ 2012-02-14 21:06 Jidong Xiao
0 siblings, 0 replies; only message in thread
From: Jidong Xiao @ 2012-02-14 21:06 UTC (permalink / raw)
To: linux-mm
Hi,
For some reason, I want to write protect a special page, but I don't
know how to set it as read-only.
I am reading the book "Understanding The Linux Virtual Memory Manager".
In section 5.6.4, there is saying:
"During fork, the PTEs of the two processes are made read-only so that
when a write occurs there will be a page fault. Linux recognises a COW
page because even though the PTE is write protected, the controlling
VMA shows the region is writable."
My question is, if I really want write protect a page, say, I don't
want a copy-on-write happens, I just hope the page is really
read-only, can I achieve that by setting "the controlling VMA" as
non-writable? Or how to do that?
Thank you!
Regards
Jidong
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-02-14 21:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-14 21:06 How to really write-protect a page Jidong Xiao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox