kernelpassion 0 Newbie Poster

I'm confused with the function:

void * page_address(struct page *page)

which (1) "convert a given page to its logical address" according to "Linux Kerenl developement 3rd edition" (2) "returns the linear address associated with the page frame" according to "understanding the linux kernel>>" (3) "returns the physical address of the page" according to "understanding the linux virtual memory manager"

which one is correct then?

Let's take (1): this function takes a pointer to the physical page (page frame), isn't that pointer already the "logical address associated with that page frame" already? what's the difference between that pointer value and the returned value then? thanks.