1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>node_map_pfn_alignment</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The Linux Kernel API"><link rel="up" href="ch04s03.html" title="More Memory Management Functions"><link rel="prev" href="API-absent-pages-in-range.html" title="absent_pages_in_range"><link rel="next" href="API-find-min-pfn-with-active-regions.html" title="find_min_pfn_with_active_regions"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">node_map_pfn_alignment</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-absent-pages-in-range.html">Prev</a> </td><th width="60%" align="center">More Memory Management Functions</th><td width="20%" align="right"> <a accesskey="n" href="API-find-min-pfn-with-active-regions.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-node-map-pfn-alignment"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>node_map_pfn_alignment — 2 determine the maximum internode alignment 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">unsigned long <b class="fsfunc">node_map_pfn_alignment </b>(</code></td><td> <var class="pdparam">void</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1124587028"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>void</code></em></span></dt><dd><p> 4 no arguments 5 </p></dd></dl></div></div><div class="refsect1"><a name="idp1124588636"></a><h2>Description</h2><p> 6 </p><p> 7 8 This function should be called after node map is populated and sorted. 9 It calculates the maximum power of two alignment which can distinguish 10 all the nodes. 11 </p><p> 12 13 For example, if all nodes are 1GiB and aligned to 1GiB, the return value 14 would indicate 1GiB alignment with (1 << (30 - PAGE_SHIFT)). If the 15 nodes are shifted by 256MiB, 256MiB. Note that if only the last node is 16 shifted, 1GiB is enough and this function will indicate so. 17 </p><p> 18 19 This is used to test whether pfn -> nid mapping of the chosen memory 20 model has fine enough granularity to avoid incorrect mapping for the 21 populated node map. 22 </p><p> 23 24 Returns the determined alignment in pfn's. 0 if there is no alignment 25 requirement (single node). 26</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-absent-pages-in-range.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch04s03.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-find-min-pfn-with-active-regions.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">absent_pages_in_range</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">find_min_pfn_with_active_regions</span></td></tr></table></div></body></html> 27