Start New Discussion Reply to this Discussion linux kernel function page_address()
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.
Related Article: 10 Things I Hate About Linux
is a Linux and Unix news story by khess that has 49 replies, was last updated 4 months ago and has been tagged with the keywords: apple, linux, mac, microsoft, virtualization, windows, apache.
kernelpassion
Newbie Poster
2 posts since Jul 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0
© 2013 DaniWeb® LLC
Page rendered in 0.0540 seconds
using 2.65MB