<trclass="memdesc:a9d02c3263af8f8d4ad94255884f4c80d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Array of key/value slots of length == size. <br/></td></tr>
<trclass="memdesc:a93de58e015e1b2a4628aea05e518726a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Number of active (filled) entries. <br/></td></tr>
<trclass="memdesc:a68079504fdb5f0c2fb08bad5efe26f21"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Operations since last aging. <br/></td></tr>
<divclass="textblock"><p>Fixed-size hash map with LRU-like eviction for bounded memory usage. </p>
<p>This map allocates a fixed amount of memory at creation and never grows. When the map approaches capacity (exceeds eviction threshold), it automatically evicts the least-frequently-accessed entries to make room for new insertions.</p>
<p>Fields:</p><ul>
<li>table: Pointer to contiguous array of <aclass="el"href="structlru__kv__pair__t.html"title="Single key/value slot with access tracking for the static LRU hash map.">lru_kv_pair_t</a> entries.</li>
<li>size: Total number of slots allocated (FIXED, never changes).</li>
<li>count: Number of occupied (non-empty) slots currently in use.</li>
<li>max_count: Eviction is triggered when count exceeds this value.</li>
<li>target_count: After eviction, entries are removed until count <= this value.</li>
<li>age_counter: Operations counter for periodic aging of access counts.</li>
</ul>
<p>Memory usage: sizeof(static_lru_hash_map_t) + (size * sizeof(lru_kv_pair_t)) With default 24-byte entries: ~24 bytes per entry + 48 bytes for the struct. </p>
<pclass="definition">Definition at line <aclass="el"href="static__lru__hash__map_8h_source.html#l00097">97</a> of file <aclass="el"href="static__lru__hash__map_8h_source.html">static_lru_hash_map.h</a>.</p>
<pclass="definition">Definition at line <aclass="el"href="static__lru__hash__map_8h_source.html#l00105">105</a> of file <aclass="el"href="static__lru__hash__map_8h_source.html">static_lru_hash_map.h</a>.</p>
<pclass="reference">Referenced by <aclass="el"href="static__lru__hash__map_8c_source.html#l00204">static_lru_create_map()</a>.</p>
<pclass="definition">Definition at line <aclass="el"href="static__lru__hash__map_8h_source.html#l00104">104</a> of file <aclass="el"href="static__lru__hash__map_8h_source.html">static_lru_hash_map.h</a>.</p>
<pclass="reference">Referenced by <aclass="el"href="static__lru__hash__map_8c_source.html#l00331">static_lru_age_counts()</a>, <aclass="el"href="static__lru__hash__map_8c_source.html#l00204">static_lru_create_map()</a>, and <aclass="el"href="static__lru__hash__map_8c_source.html#l00245">static_lru_insert_map()</a>.</p>
<pclass="definition">Definition at line <aclass="el"href="static__lru__hash__map_8h_source.html#l00101">101</a> of file <aclass="el"href="static__lru__hash__map_8h_source.html">static_lru_hash_map.h</a>.</p>
<pclass="reference">Referenced by <aclass="el"href="static__lru__hash__map_8c_source.html#l00139">evict_lru_entries()</a>, <aclass="el"href="static__lru__hash__map_8c_source.html#l00087">rehash_in_place()</a>, <aclass="el"href="static__lru__hash__map_8c_source.html#l00204">static_lru_create_map()</a>, <aclass="el"href="static__lru__hash__map_8c_source.html#l00339">static_lru_free_slots()</a>, <aclass="el"href="static__lru__hash__map_8c_source.html#l00245">static_lru_insert_map()</a>, and <aclass="el"href="static__lru__hash__map_8c_source.html#l00337">static_lru_load_factor()</a>.</p>
<pclass="definition">Definition at line <aclass="el"href="static__lru__hash__map_8h_source.html#l00102">102</a> of file <aclass="el"href="static__lru__hash__map_8h_source.html">static_lru_hash_map.h</a>.</p>
<pclass="reference">Referenced by <aclass="el"href="static__lru__hash__map_8c_source.html#l00204">static_lru_create_map()</a>, and <aclass="el"href="static__lru__hash__map_8c_source.html#l00245">static_lru_insert_map()</a>.</p>
<p>Allocated slot capacity (FIXED at creation). </p>
<pclass="definition">Definition at line <aclass="el"href="static__lru__hash__map_8h_source.html#l00100">100</a> of file <aclass="el"href="static__lru__hash__map_8h_source.html">static_lru_hash_map.h</a>.</p>
<pclass="reference">Referenced by <aclass="el"href="static__lru__hash__map_8c_source.html#l00064">age_access_counts()</a>, <aclass="el"href="static__lru__hash__map_8c_source.html#l00139">evict_lru_entries()</a>, <aclass="el"href="static__lru__hash__map_8c_source.html#l00087">rehash_in_place()</a>, <aclass="el"href="static__lru__hash__map_8c_source.html#l00314">static_lru_contains_key()</a>, <aclass="el"href="static__lru__hash__map_8c_source.html#l00204">static_lru_create_map()</a>, <aclass="el"href="static__lru__hash__map_8c_source.html#l00339">static_lru_free_slots()</a>, <aclass="el"href="static__lru__hash__map_8c_source.html#l00245">static_lru_insert_map()</a>, <aclass="el"href="static__lru__hash__map_8c_source.html#l00337">static_lru_load_factor()</a>, and <aclass="el"href="static__lru__hash__map_8c_source.html#l00284">static_lru_lookup_map()</a>.</p>
<p>Array of key/value slots of length == size. </p>
<pclass="definition">Definition at line <aclass="el"href="static__lru__hash__map_8h_source.html#l00099">99</a> of file <aclass="el"href="static__lru__hash__map_8h_source.html">static_lru_hash_map.h</a>.</p>
<pclass="reference">Referenced by <aclass="el"href="static__lru__hash__map_8c_source.html#l00064">age_access_counts()</a>, <aclass="el"href="static__lru__hash__map_8c_source.html#l00139">evict_lru_entries()</a>, <aclass="el"href="static__lru__hash__map_8c_source.html#l00087">rehash_in_place()</a>, <aclass="el"href="static__lru__hash__map_8c_source.html#l00314">static_lru_contains_key()</a>, <aclass="el"href="static__lru__hash__map_8c_source.html#l00204">static_lru_create_map()</a>, <aclass="el"href="static__lru__hash__map_8c_source.html#l00237">static_lru_free_map()</a>, <aclass="el"href="static__lru__hash__map_8c_source.html#l00245">static_lru_insert_map()</a>, and <aclass="el"href="static__lru__hash__map_8c_source.html#l00284">static_lru_lookup_map()</a>.</p>
<p>Target count after eviction (size * TARGET_LOAD_FACTOR). </p>
<pclass="definition">Definition at line <aclass="el"href="static__lru__hash__map_8h_source.html#l00103">103</a> of file <aclass="el"href="static__lru__hash__map_8h_source.html">static_lru_hash_map.h</a>.</p>
<pclass="reference">Referenced by <aclass="el"href="static__lru__hash__map_8c_source.html#l00139">evict_lru_entries()</a>, and <aclass="el"href="static__lru__hash__map_8c_source.html#l00204">static_lru_create_map()</a>.</p>
</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<liclass="footer">Generated by <ahref="https://www.doxygen.org/index.html"><imgclass="footer"src="doxygen.svg"width="104"height="31"alt="doxygen"/></a> 1.16.1 </li>