Managing Data Structure Creation

Starting with kernel 2.6.10, a generic framework was provided to transfer this information into the node and zone data structures expected by the buddy system; before this, each architecture had to set up the structures on its own. Today, it suffices to set up the aforementioned simple structures and leave the hard work to free_area_init_nodes. Figure 3-27 shows an overview of the process, and Figure 3-28 shows the code flow diagram for free_area_init_nodes.

Architecture-specific initialization \

/FiiTi

^early_node_map

/Set max page frame numbers for zones

(max_zone_pfns)

pg_data_t pg_data_t

Generic representation of nodes and zones

Generic representation of nodes and zones free_area_init_nodes

Continue reading here: Figure 327 Overview of the interplay between architecturespecific and generic kernel code for setting up node and zone data memory management data structures

Was this article helpful?

0 0