Files
website/static/images/xthv1/xthv1-map-tree.svg
harraiken d3b870619f
Builds / ExectOS WebSite (push) Successful in 22s
Add XTHV1 registry hive format article
2026-11-29 14:57:54 +01:00

70 lines
5.9 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 920 560" font-family="Helvetica, Arial, sans-serif">
<rect width="920" height="560" fill="#ffffff"/>
<defs>
<marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M0,0 L10,5 L0,10 z" fill="#555"/></marker>
</defs>
<text x="460" y="30" font-size="18" font-weight="bold" text-anchor="middle" fill="#222">Map tree: three fixed levels, 84 descriptors per node</text>
<g font-size="12" text-anchor="middle">
<!-- level 2 -->
<rect x="370" y="55" width="180" height="46" rx="4" fill="#7a5ea8"/>
<text x="460" y="74" fill="#fff" font-weight="bold">Level 2 (root)</text>
<text x="460" y="91" fill="#fff" font-family="monospace">index = LPN / 7056</text>
<!-- level 1 -->
<rect x="130" y="150" width="180" height="46" rx="4" fill="#7a5ea8"/>
<text x="220" y="169" fill="#fff" font-weight="bold">Level 1, entry 0</text>
<text x="220" y="186" fill="#fff" font-family="monospace">LPN 0 … 7055</text>
<rect x="610" y="150" width="180" height="46" rx="4" fill="#7a5ea8"/>
<text x="700" y="169" fill="#fff" font-weight="bold">Level 1, entry k</text>
<text x="700" y="186" fill="#fff" font-family="monospace">LPN k·7056 …</text>
<text x="460" y="178" fill="#777" font-size="16">…</text>
<line x1="420" y1="101" x2="240" y2="148" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<line x1="500" y1="101" x2="680" y2="148" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<text x="600" y="128" fill="#555" font-family="monospace" text-anchor="start">index = (LPN % 7056) / 84</text>
<!-- level 0 -->
<rect x="40" y="245" width="150" height="46" rx="4" fill="#7a5ea8"/>
<text x="115" y="264" fill="#fff" font-weight="bold">Level 0, entry 0</text>
<text x="115" y="281" fill="#fff" font-family="monospace">LPN 0 … 83</text>
<rect x="250" y="245" width="150" height="46" rx="4" fill="#7a5ea8"/>
<text x="325" y="264" fill="#fff" font-weight="bold">Level 0, entry 1</text>
<text x="325" y="281" fill="#fff" font-family="monospace">LPN 84 … 167</text>
<line x1="200" y1="196" x2="125" y2="243" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<line x1="240" y1="196" x2="315" y2="243" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<text x="440" y="273" fill="#555" font-family="monospace" text-anchor="start">index = LPN % 84</text>
<!-- data -->
<rect x="20" y="335" width="60" height="40" rx="4" fill="#3c8d5c"/><text x="50" y="359" fill="#fff" font-family="monospace">LPN 0</text>
<rect x="86" y="335" width="60" height="40" rx="4" fill="#3c8d5c"/><text x="116" y="359" fill="#fff" font-family="monospace">LPN 1</text>
<text x="164" y="360" fill="#777" font-size="16">…</text>
<rect x="182" y="335" width="60" height="40" rx="4" fill="#3c8d5c"/><text x="212" y="359" fill="#fff" font-family="monospace">LPN 83</text>
<line x1="90" y1="291" x2="52" y2="333" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<line x1="115" y1="291" x2="116" y2="333" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<line x1="140" y1="291" x2="208" y2="333" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<text x="620" y="300" fill="#333" text-anchor="start">Capacity: 84³ = 592 704 pages</text>
<text x="620" y="318" fill="#333" text-anchor="start">Largest image: 524 287 pages</text>
<text x="620" y="336" fill="#333" text-anchor="start">Depth never depends on the data.</text>
</g>
<!-- node page layout -->
<text x="460" y="420" font-size="15" font-weight="bold" text-anchor="middle" fill="#222">Map node page (4096 bytes) and descriptor (48 bytes)</text>
<g font-size="11" text-anchor="middle">
<rect x="40" y="440" width="64" height="40" rx="3" fill="#7a5ea8"/><text x="72" y="464" fill="#fff">Magic</text>
<rect x="106" y="440" width="96" height="40" rx="3" fill="#c07a2c"/><text x="154" y="464" fill="#fff">HiveId</text>
<rect x="204" y="440" width="72" height="40" rx="3" fill="#7a5ea8"/><text x="240" y="458" fill="#fff">Birth</text><text x="240" y="472" fill="#fff">Generation</text>
<rect x="278" y="440" width="64" height="40" rx="3" fill="#7a5ea8"/><text x="310" y="464" fill="#fff">BaseLpn</text>
<rect x="344" y="440" width="40" height="40" rx="3" fill="#7a5ea8"/><text x="364" y="464" fill="#fff">Level</text>
<rect x="386" y="440" width="48" height="40" rx="3" fill="#7a5ea8"/><text x="410" y="458" fill="#fff">Used</text><text x="410" y="472" fill="#fff">Entries</text>
<rect x="436" y="440" width="60" height="40" rx="3" fill="#bbbbbb"/><text x="466" y="464" fill="#333">reserved</text>
<rect x="498" y="440" width="382" height="40" rx="3" fill="#3c8d5c"/><text x="689" y="464" fill="#fff">Entries[84] — 84 × 48-byte descriptors</text>
<g font-family="monospace" fill="#555" font-size="10">
<text x="40" y="495" text-anchor="start">0</text><text x="106" y="495" text-anchor="start">8</text><text x="204" y="495" text-anchor="start">24</text>
<text x="278" y="495" text-anchor="start">32</text><text x="344" y="495" text-anchor="start">40</text><text x="386" y="495" text-anchor="start">44</text>
<text x="436" y="495" text-anchor="start">48</text><text x="498" y="495" text-anchor="start">64</text><text x="880" y="495" text-anchor="end">4096</text>
</g>
<rect x="498" y="510" width="90" height="36" rx="3" fill="#3c8d5c"/><text x="543" y="532" fill="#fff">PBN (u64)</text>
<rect x="590" y="510" width="120" height="36" rx="3" fill="#3c8d5c"/><text x="650" y="532" fill="#fff">BirthGeneration (u64)</text>
<rect x="712" y="510" width="168" height="36" rx="3" fill="#a5484a"/><text x="796" y="532" fill="#fff">Hash: SHA-1 + 12 zero</text>
<line x1="498" y1="482" x2="498" y2="508" stroke="#999" stroke-dasharray="3,3"/>
<line x1="560" y1="482" x2="880" y2="508" stroke="#999" stroke-dasharray="3,3"/>
</g>
</svg>