pte_t *lookup_address(unsigned long address, unsigned int *level);And then I can checks the flags of this pte.
I though about the flags field from "struct page {}", but from the name I can't see any useful flag to check this.Hi all,I'm writing a module to read/write kernel memory, and for this I'd like to check if a page is marked as read-only, so we don't have the right to write there (kernel code for instance).
The only flag I saw is different between kernel code and module code is that kernel code has the flag "reserved" enabled, so it's not swapped.Could someone provide me a hint about that?Thank you very much