This commit is contained in:
Costa Shulyupin 2019-11-21 20:38:30 +02:00
parent ffa2d9a236
commit 33462af677
1 changed files with 48 additions and 44 deletions

View File

@ -3,17 +3,20 @@ digraph matrix {
nodesep=0.1, nodesep=0.1,
overlap=true, overlap=true,
ranksep=0.1, ranksep=0.1,
splines=false splines=false,
]; ];
node [fixedsize=false, node [fixedsize=false,
height=0.5, fontname=Ubuntu
fontsize=24,
height=1,
shape=box, shape=box,
style="filled,setlinewidth(3)", style="filled,setlinewidth(3)",
width=1.1 width=2.2
]; ];
edge [arrowhead=none, edge [arrowhead=none,
arrowsize=0.5, arrowsize=0.5,
style=invis, style=invis,
labelfontname="Ubuntu",
weight=10 weight=10
]; ];
{ {
@ -27,10 +30,10 @@ digraph matrix {
system [color="#e27dd6ff", system [color="#e27dd6ff",
fillcolor=white, fillcolor=white,
fixedsize=true, fixedsize=true,
height=0.3, height=0.6,
row=func, row=func,
tooltip=TODO, tooltip=TODO,
width=1]; width=2];
system -> system_ [arrowhead="", system -> system_ [arrowhead="",
color="#e27dd6ff", color="#e27dd6ff",
row=func, row=func,
@ -49,16 +52,16 @@ digraph matrix {
DM [color="#e27dd6ff", DM [color="#e27dd6ff",
fillcolor="#91b5c9", fillcolor="#91b5c9",
fixedsize=true, fixedsize=true,
fontsize=10, fontsize=20,
height=0.4, height=0.8,
label="Device\nModel", label="Device\nModel",
shape=octagon, shape=octagon,
width=1]; width=2];
sysfs -> DM [color="#e27dd6ff", sysfs -> DM [color="#e27dd6ff",
style="filled,setlinewidth(3)"]; style="filled,setlinewidth(3)"];
log_sys [color="#e27dd6ff", log_sys [color="#e27dd6ff",
fillcolor="#6a9ab1", fillcolor="#6a9ab1",
fontsize=10, fontsize=20,
label="system run,\nmodules,\ngeneric\nHW access "]; label="system run,\nmodules,\ngeneric\nHW access "];
DM -> log_sys [color="#e27dd6ff", DM -> log_sys [color="#e27dd6ff",
style="filled,setlinewidth(3)"]; style="filled,setlinewidth(3)"];
@ -70,7 +73,7 @@ digraph matrix {
H2 [color="#e27dd6ff", H2 [color="#e27dd6ff",
fillcolor="#777777", fillcolor="#777777",
fontcolor=white, fontcolor=white,
fontsize=10, fontsize=20,
label="busess:\nPCI, USB ...", label="busess:\nPCI, USB ...",
row=chip]; row=chip];
bus_drv -> H2 [color="#e27dd6ff", bus_drv -> H2 [color="#e27dd6ff",
@ -88,9 +91,9 @@ digraph matrix {
networking [color="#61c2c5", networking [color="#61c2c5",
fillcolor=white, fillcolor=white,
fixedsize=true, fixedsize=true,
height=0.3, height=0.6,
row=func, row=func,
width=1]; width=2];
networking -> networking_ [arrowhead="", networking -> networking_ [arrowhead="",
color="#61c2c5", color="#61c2c5",
row=func, row=func,
@ -113,14 +116,14 @@ digraph matrix {
style="filled,setlinewidth(3)"]; style="filled,setlinewidth(3)"];
netif [color="#61c2c5", netif [color="#61c2c5",
fillcolor="#71809b", fillcolor="#71809b",
fontsize=10, fontsize=20,
label="network\ninterfaces\nand drivers"]; label="network\ninterfaces\nand drivers"];
log_prot -> netif [color="#61c2c5", log_prot -> netif [color="#61c2c5",
style="filled,setlinewidth(3)"]; style="filled,setlinewidth(3)"];
net_hw [color="#61c2c5", net_hw [color="#61c2c5",
fillcolor="#777777", fillcolor="#777777",
fontcolor=white, fontcolor=white,
fontsize=10, fontsize=20,
label="network:\nEthernet, WiFi ...", label="network:\nEthernet, WiFi ...",
row=chip]; row=chip];
netif -> net_hw [color="#61c2c5", netif -> net_hw [color="#61c2c5",
@ -128,10 +131,10 @@ digraph matrix {
NFS [color="#8383cc", NFS [color="#8383cc",
fillcolor="#91b5c9", fillcolor="#91b5c9",
fixedsize=true, fixedsize=true,
height=0.4, height=0.8,
label=NFS, label=NFS,
shape=octagon, shape=octagon,
width=0.6]; width=1.2];
NFS -> log_prot [color="#61c2c5", NFS -> log_prot [color="#61c2c5",
style="filled,setlinewidth(3)", style="filled,setlinewidth(3)",
weight=0]; weight=0];
@ -149,9 +152,9 @@ digraph matrix {
storage [color="#8383cc", storage [color="#8383cc",
fillcolor=white, fillcolor=white,
fixedsize=true, fixedsize=true,
height=0.3, height=0.6,
row=func, row=func,
width=1]; width=2];
storage -> storage_ [arrowhead="", storage -> storage_ [arrowhead="",
color="#8383cc", color="#8383cc",
row=func, row=func,
@ -172,35 +175,35 @@ digraph matrix {
weight=0]; weight=0];
logFS [color="#8383cc", logFS [color="#8383cc",
fillcolor="#6a9ab1", fillcolor="#6a9ab1",
fontsize=10, fontsize=20,
label="logical\nfilesystems:\next3, xfs ..."]; label="logical\nfilesystems:\next3, xfs ..."];
VFS -> logFS [color="#8383cc", VFS -> logFS [color="#8383cc",
style="filled,setlinewidth(3)"]; style="filled,setlinewidth(3)"];
PC [color="#51bf5b", PC [color="#51bf5b",
fillcolor="#91b5c9", fillcolor="#91b5c9",
fixedsize=true, fixedsize=true,
fontsize=10, fontsize=20,
height=0.4, height=0.8,
label="page\ncache", label="page\ncache",
shape=octagon, shape=octagon,
width=0.6]; width=1.2];
VFS -> PC [color="#8383cc", VFS -> PC [color="#8383cc",
style="filled,setlinewidth(3)", style="filled,setlinewidth(3)",
weight=0]; weight=0];
mmap [color="#51bf5b", mmap [color="#51bf5b",
fillcolor="#91b5c9", fillcolor="#91b5c9",
fixedsize=true, fixedsize=true,
fontsize=10, fontsize=20,
height=0.4, height=0.8,
label="memory\nmapping", label="memory\nmapping",
shape=octagon, shape=octagon,
width=1]; width=2];
VFS -> mmap [color="#8383cc", VFS -> mmap [color="#8383cc",
style="filled,setlinewidth(3)", style="filled,setlinewidth(3)",
weight=0]; weight=0];
block [color="#8383cc", block [color="#8383cc",
fillcolor="#71809b", fillcolor="#71809b",
fontsize=10, fontsize=20,
label="Block\ndevices\nand drivers"]; label="Block\ndevices\nand drivers"];
logFS -> block [color="#8383cc", logFS -> block [color="#8383cc",
style="filled,setlinewidth(3)"]; style="filled,setlinewidth(3)"];
@ -213,7 +216,7 @@ digraph matrix {
H4 [color="#8383cc", H4 [color="#8383cc",
fillcolor="#777777", fillcolor="#777777",
fontcolor=white, fontcolor=white,
fontsize=10, fontsize=20,
label="storage devices:\nSCSI, NVMe ...", label="storage devices:\nSCSI, NVMe ...",
row=chip]; row=chip];
block -> H4 [color="#8383cc", block -> H4 [color="#8383cc",
@ -222,8 +225,9 @@ digraph matrix {
fillcolor="#91b5c9", fillcolor="#91b5c9",
fixedsize=true, fixedsize=true,
label=Swap, label=Swap,
height=0.8,
shape=octagon, shape=octagon,
width=0.6]; width=1.2];
SW -> block [color="#8383cc", SW -> block [color="#8383cc",
style="filled,setlinewidth(3)", style="filled,setlinewidth(3)",
weight=0]; weight=0];
@ -242,9 +246,9 @@ digraph matrix {
processing [color="#c46747", processing [color="#c46747",
fillcolor=white, fillcolor=white,
fixedsize=true, fixedsize=true,
height=0.3, height=0.6,
row=func, row=func,
width=1]; width=2];
processing -> processing_ [arrowhead="", processing -> processing_ [arrowhead="",
color="#c46747", color="#c46747",
row=func, row=func,
@ -262,7 +266,7 @@ digraph matrix {
sync [color="#c46747", sync [color="#c46747",
fillcolor="#91b5c9", fillcolor="#91b5c9",
fixedsize=true, fixedsize=true,
fontsize=10, fontsize=20,
label=synchronization, label=synchronization,
shape=octagon]; shape=octagon];
Tasks -> sync [color="#c46747", Tasks -> sync [color="#c46747",
@ -274,14 +278,14 @@ digraph matrix {
style="filled,setlinewidth(3)"]; style="filled,setlinewidth(3)"];
IRQ [color="#c46747", IRQ [color="#c46747",
fillcolor="#71809b", fillcolor="#71809b",
fontsize=10, fontsize=20,
label="interrupts\ncore,\nCPU arch"]; label="interrupts\ncore,\nCPU arch"];
sched -> IRQ [color="#c46747", sched -> IRQ [color="#c46747",
style="filled,setlinewidth(3)"]; style="filled,setlinewidth(3)"];
CPU [color="#c46747", CPU [color="#c46747",
fillcolor="#777777", fillcolor="#777777",
fontcolor=white, fontcolor=white,
fontsize=10, fontsize=20,
row=chip]; row=chip];
IRQ -> CPU [color="#c46747", IRQ -> CPU [color="#c46747",
style="filled,setlinewidth(3)"]; style="filled,setlinewidth(3)"];
@ -302,11 +306,11 @@ digraph matrix {
HI [color="#cfbf57ff", HI [color="#cfbf57ff",
fillcolor=white, fillcolor=white,
fixedsize=true, fixedsize=true,
fontsize=11, fontsize=20,
height=0.3, height=0.6,
label="human\ninterface", label="human\ninterface",
row=func, row=func,
width=1]; width=2];
HI -> HI_ [arrowhead="", HI -> HI_ [arrowhead="",
color="#cfbf57ff", color="#cfbf57ff",
row=func, row=func,
@ -329,14 +333,14 @@ digraph matrix {
style="filled,setlinewidth(3)"]; style="filled,setlinewidth(3)"];
G7 [color="#cfbf57ff", G7 [color="#cfbf57ff",
fillcolor="#71809b", fillcolor="#71809b",
fontsize=10, fontsize=20,
label="HI\nperipherals\ndrivers"]; label="HI\nperipherals\ndrivers"];
F7 -> G7 [color="#cfbf57ff", F7 -> G7 [color="#cfbf57ff",
style="filled,setlinewidth(3)"]; style="filled,setlinewidth(3)"];
H7 [color="#cfbf57ff", H7 [color="#cfbf57ff",
fillcolor="#777777", fillcolor="#777777",
fontcolor=white, fontcolor=white,
fontsize=10, fontsize=20,
label="display, keyboard,\nmouse, audio", label="display, keyboard,\nmouse, audio",
row=chip]; row=chip];
G7 -> H7 [color="#cfbf57ff", G7 -> H7 [color="#cfbf57ff",
@ -355,9 +359,9 @@ digraph matrix {
memory [color="#51bf5b", memory [color="#51bf5b",
fillcolor=white, fillcolor=white,
fixedsize=true, fixedsize=true,
height=0.3, height=0.6,
row=func, row=func,
width=1]; width=2];
storage -> memory [weight=1]; storage -> memory [weight=1];
processing; processing;
HI; HI;
@ -372,10 +376,10 @@ digraph matrix {
functions [color=gray, functions [color=gray,
fillcolor=gray, fillcolor=gray,
fixedsize=true, fixedsize=true,
height=0.3, height=0.6,
row=func, row=func,
style=dashed, style=dashed,
width=0.8]; width=1.6];
functions -> functions_ [arrowhead="", functions -> functions_ [arrowhead="",
color=gray, color=gray,
style="", style="",
@ -522,7 +526,7 @@ digraph matrix {
H5 [color="#51bf5b", H5 [color="#51bf5b",
fillcolor="#777777", fillcolor="#777777",
fontcolor=white, fontcolor=white,
fontsize=10, fontsize=20,
label="MMU, RAM", label="MMU, RAM",
row=chip]; row=chip];
} }
@ -614,7 +618,7 @@ digraph matrix {
layers -> usr [arrowhead="", layers -> usr [arrowhead="",
color=gray, color=gray,
style="filled,setlinewidth(1)"]; style="filled,setlinewidth(1)"];
LKD [fontsize=20, LKD [fontsize=40,
label="Linux kernel diagram", label="Linux kernel diagram",
shape=plain, shape=plain,
style=""]; style=""];