please tell me whether my understanding is correct.
the purpose of
mem_map array is to refer to the struct page data structure which is always associated with a page frame.
so when, MMU translates PGD->PMD->PTE, still there is a need to access struct page for certain permissions and so on....
so there is a need to access strct page and whcih can be accessed by giving physical address and converting it into fame no and then indexing into mem_map array.
and reverse can also be done to get physical address of a page from struct_page address.
please somebody clarify whether my understanding is correct ???
Do you know about Mel
Do you know about Mel Gorman's "Understanding the Linux® Virtual Memory Manager"? Version in pdf is available.
"""
Physical addresses are translated to struct pages by treating them as an index into the
mem_maparray."""
page 43 (in pdf 61).
____