Changing page flags
I use ioremap() to create a memory mapping in my kernel module. I would like to change some flags of the corresponding pages, but I don't know how. Probably it is necessary to access the appropriate "page struct*" and update its "flags" field. However, when I try to use virt_to_page macro to get the page struct it doesn't work. Somewhere I saw that it is not possible to use virt_to_page with addresses obtained using ioremap(). What other means shoud I use to access the appropriate page table entry?