What I'd do is extend alloc_area_pmd, alloc_area_pte and so on to take an
extra argument to be the page protection value. The normal vmalloc can pass
this in as just PAGE_KERNEL, and your new vmalloc_uncached can use some
appropriate variant.
>or can I just alloc the area and then make pages non-cachable using
>pte_modify afterwards ? In this case I'm not sure how to walk the PTEs...
You *could* do it this way, but I don't think it's such a good idea.
>Also alloc_are_pte makes several calls to __get_free_page, so I beleive
>there's no way to make sure they are physically contiguous, is there ?
No. This is always the case with vmalloc.
p.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/