How to raise a page fault?
Hello everyone!! I have a question.
I want to generate a page fault intentionally even if the page table entry already exists. So I cleared a _PAGE_PRESENT bit to generate a page fault. Here's the kernel code I wrote: Code:
pte = get_locked_pte(mm, addr, &ptl); Thank you. |
You can't "fake the system to produce a page fault" in this way. You would certainly destroy the integrity of the kernel with such an attempt.
First of all, why do you feel the need to generate a page-fault for data which exists? |
All times are GMT -5. The time now is 11:23 AM. |