Linux_Kernel_map4vehicle/Linux_kernel_diagram.dot

623 lines
13 KiB
Plaintext
Raw Normal View History

2019-11-18 13:21:35 +08:00
digraph matrix {
graph [newrank=true,
2019-11-22 00:32:36 +08:00
nodesep=0.1,
overlap=true,
ranksep=0.1,
splines=false
2019-11-18 13:21:35 +08:00
];
2019-11-22 00:32:36 +08:00
node [fixedsize=false,
height=0.5,
shape=box,
style="filled,setlinewidth(3)",
width=1.1
2019-11-22 00:31:50 +08:00
];
2019-11-22 00:32:36 +08:00
edge [arrowhead=none,
arrowsize=0.5,
style=invis,
weight=10
2019-11-22 00:31:50 +08:00
];
2019-11-18 13:21:35 +08:00
{
2019-11-22 00:32:36 +08:00
node [color="#e27dd6ff"];
system_ [color="#e27dd6ff",
fixedsize=true,
2019-11-22 00:32:36 +08:00
height=0,
shape="",
style=invis,
width=0];
system [color="#e27dd6ff",
2019-11-22 00:31:50 +08:00
fillcolor=white,
fixedsize=true,
height=0.4,
2019-11-22 00:31:50 +08:00
row=func,
tooltip=TODO,
width=1];
2019-11-22 00:32:36 +08:00
system -> system_ [arrowhead="",
color="#e27dd6ff",
row=func,
style="filled,setlinewidth(3)"];
SCI [color="#e27dd6ff",
2019-11-22 00:31:50 +08:00
fillcolor="#d9e7ee",
fixedsize=true,
label="System calls",
row=usr,
2019-11-22 00:32:36 +08:00
shape=ellipse];
sysfs [color="#e27dd6ff",
2019-11-22 00:31:50 +08:00
fillcolor="#b2d3e4",
2019-11-22 00:32:36 +08:00
label="proc, sysfs,\nfile systems"];
SCI -> sysfs [color="#e27dd6ff",
style="filled,setlinewidth(3)"];
DM [color="#e27dd6ff",
2019-11-22 00:31:50 +08:00
fillcolor="#91b5c9",
fixedsize=true,
fontsize=10,
height=0.4,
label="Device\nModel",
shape=octagon,
width=1];
2019-11-22 00:32:36 +08:00
sysfs -> DM [color="#e27dd6ff",
style="filled,setlinewidth(3)"];
log_sys [color="#e27dd6ff",
2019-11-22 00:31:50 +08:00
fillcolor="#6a9ab1",
fontsize=10,
2019-11-22 00:32:36 +08:00
label="system run,\nmodules,\ngeneric\nHW access "];
DM -> log_sys [color="#e27dd6ff",
style="filled,setlinewidth(3)"];
bus_drv [color="#e27dd6ff",
2019-11-22 00:31:50 +08:00
fillcolor="#71809b",
2019-11-22 00:32:36 +08:00
label="bus drivers"];
log_sys -> bus_drv [color="#e27dd6ff",
style="filled,setlinewidth(3)"];
H2 [color="#e27dd6ff",
2019-11-22 00:31:50 +08:00
fillcolor="#777777",
fontcolor=white,
fontsize=10,
label="busess:\nPCI, USB ...",
2019-11-22 00:32:36 +08:00
row=chip];
bus_drv -> H2 [color="#e27dd6ff",
style="filled,setlinewidth(3)"];
2019-11-22 00:31:50 +08:00
}
{
2019-11-22 00:32:36 +08:00
node [color="#61c2c5"];
2019-11-22 00:31:50 +08:00
edge [color="#61c2c5"];
networking_ [color="#61c2c5",
fixedsize=true,
2019-11-22 00:32:36 +08:00
height=0,
shape="",
style=invis,
width=0];
networking [color="#61c2c5",
fillcolor=white,
fixedsize=true,
height=0.4,
2019-11-22 00:32:36 +08:00
row=func,
width=1];
networking -> networking_ [arrowhead="",
color="#61c2c5",
row=func,
style="filled,setlinewidth(3)"];
sock [color="#61c2c5",
2019-11-22 00:31:50 +08:00
fillcolor="#d9e7ee",
fixedsize=true,
label=Sockets,
row=usr,
2019-11-22 00:32:36 +08:00
shape=ellipse];
prot_fam [color="#61c2c5",
fillcolor="#b2d3e4",
label="protocol\nfamilies"];
sock -> prot_fam [color="#61c2c5",
2019-11-22 00:31:50 +08:00
style="filled,setlinewidth(3)"];
2019-11-22 00:32:36 +08:00
log_prot [color="#61c2c5",
fillcolor="#6a9ab1",
label="protocols:\nTCP, UDP, IP"];
prot_fam -> log_prot [color="#61c2c5",
style="filled,setlinewidth(3)"];
netif [color="#61c2c5",
2019-11-22 00:31:50 +08:00
fillcolor="#71809b",
fontsize=10,
2019-11-22 00:32:36 +08:00
label="network\ninterfaces\nand drivers"];
log_prot -> netif [color="#61c2c5",
2019-11-22 00:31:50 +08:00
style="filled,setlinewidth(3)"];
2019-11-22 00:32:36 +08:00
net_hw [color="#61c2c5",
2019-11-22 00:31:50 +08:00
fillcolor="#777777",
fontcolor=white,
fontsize=10,
label="network:\nEthernet, WiFi ...",
2019-11-22 00:32:36 +08:00
row=chip];
netif -> net_hw [color="#61c2c5",
2019-11-22 00:31:50 +08:00
style="filled,setlinewidth(3)"];
2019-11-22 00:32:36 +08:00
NFS [color="#8383cc",
2019-11-22 00:31:50 +08:00
fillcolor="#91b5c9",
fixedsize=true,
height=0.4,
label=NFS,
shape=octagon,
width=0.6];
2019-11-22 00:32:36 +08:00
NFS -> log_prot [color="#61c2c5",
style="filled,setlinewidth(3)",
weight=0];
2019-11-22 00:31:50 +08:00
}
{
2019-11-22 00:32:36 +08:00
node [color="#8383cc"];
2019-11-22 00:31:50 +08:00
edge [color="#8383cc"];
NFS;
storage_ [color="#8383cc",
fixedsize=true,
2019-11-22 00:32:36 +08:00
height=0,
shape="",
style=invis,
width=0];
storage [color="#8383cc",
2019-11-22 00:31:50 +08:00
fillcolor=white,
fixedsize=true,
height=0.4,
2019-11-22 00:31:50 +08:00
row=func,
width=1];
2019-11-22 00:32:36 +08:00
storage -> storage_ [arrowhead="",
color="#8383cc",
row=func,
style="filled,setlinewidth(3)"];
FS [color="#8383cc",
2019-11-22 00:31:50 +08:00
fillcolor="#d9e7ee",
fixedsize=true,
label="files and\ndirectories",
row=usr,
2019-11-22 00:32:36 +08:00
shape=ellipse];
VFS [color="#8383cc",
fillcolor="#b2d3e4",
label="Virtual\nFile System"];
FS -> VFS [color="#8383cc",
2019-11-22 00:31:50 +08:00
style="filled,setlinewidth(3)"];
2019-11-22 00:32:36 +08:00
VFS -> NFS [color="#8383cc",
2019-11-22 00:31:50 +08:00
style="filled,setlinewidth(3)",
2019-11-22 00:32:36 +08:00
weight=0];
logFS [color="#8383cc",
2019-11-22 00:31:50 +08:00
fillcolor="#6a9ab1",
fontsize=10,
2019-11-22 00:32:36 +08:00
label="logical\nfilesystems:\next3, xfs ..."];
VFS -> logFS [color="#8383cc",
2019-11-22 00:31:50 +08:00
style="filled,setlinewidth(3)"];
2019-11-22 00:32:36 +08:00
PC [color="#51bf5b",
2019-11-22 00:31:50 +08:00
fillcolor="#91b5c9",
fixedsize=true,
fontsize=10,
height=0.4,
label="page\ncache",
shape=octagon,
width=0.6];
2019-11-22 00:32:36 +08:00
VFS -> PC [color="#8383cc",
style="filled,setlinewidth(3)",
weight=0];
mmap [color="#51bf5b",
2019-11-22 00:31:50 +08:00
fillcolor="#91b5c9",
fixedsize=true,
fontsize=10,
height=0.4,
label="memory\nmapping",
shape=octagon,
width=1];
2019-11-22 00:32:36 +08:00
VFS -> mmap [color="#8383cc",
style="filled,setlinewidth(3)",
weight=0];
block [color="#8383cc",
2019-11-22 00:31:50 +08:00
fillcolor="#71809b",
fontsize=10,
2019-11-22 00:32:36 +08:00
label="Block\ndevices\nand drivers"];
logFS -> block [color="#8383cc",
2019-11-22 00:31:50 +08:00
style="filled,setlinewidth(3)"];
2019-11-22 00:32:36 +08:00
PA [color="#51bf5b",
2019-11-22 00:31:50 +08:00
fillcolor="#71809b",
2019-11-22 00:32:36 +08:00
label="Page\nAllocator"];
PC -> PA [color="#51bf5b",
style="filled,setlinewidth(3)",
weight=0];
H4 [color="#8383cc",
2019-11-22 00:31:50 +08:00
fillcolor="#777777",
fontcolor=white,
fontsize=10,
label="storage devices:\nSCSI, NVMe ...",
2019-11-22 00:32:36 +08:00
row=chip];
block -> H4 [color="#8383cc",
2019-11-22 00:31:50 +08:00
style="filled,setlinewidth(3)"];
2019-11-22 00:32:36 +08:00
SW [color="#8383cc",
2019-11-22 00:31:50 +08:00
fillcolor="#91b5c9",
fixedsize=true,
label=Swap,
shape=octagon,
width=0.6];
2019-11-22 00:32:36 +08:00
SW -> block [color="#8383cc",
style="filled,setlinewidth(3)",
weight=0];
2019-11-22 00:31:50 +08:00
}
{
node [color="#c46747",
2019-11-22 00:32:36 +08:00
style="filled,setlinewidth(3)"
2019-11-22 00:31:50 +08:00
];
edge [color="#c46747"];
processing_ [color="#c46747",
fixedsize=true,
2019-11-22 00:32:36 +08:00
height=0,
shape="",
style=invis,
width=0];
processing [color="#c46747",
fillcolor=white,
fixedsize=true,
height=0.4,
2019-11-22 00:32:36 +08:00
row=func,
width=1];
processing -> processing_ [arrowhead="",
color="#c46747",
row=func,
style="filled,setlinewidth(3)"];
proc [color="#c46747",
2019-11-22 00:31:50 +08:00
fillcolor="#d9e7ee",
fixedsize=true,
label=Processes,
row=usr,
2019-11-22 00:32:36 +08:00
shape=ellipse];
Tasks [color="#c46747",
fillcolor="#b2d3e4"];
proc -> Tasks [color="#c46747",
2019-11-22 00:31:50 +08:00
style="filled,setlinewidth(3)"];
2019-11-22 00:32:36 +08:00
sync [color="#c46747",
2019-11-22 00:31:50 +08:00
fillcolor="#91b5c9",
fixedsize=true,
fontsize=10,
label=synchronization,
2019-11-22 00:32:36 +08:00
shape=octagon];
Tasks -> sync [color="#c46747",
2019-11-22 00:31:50 +08:00
style="filled,setlinewidth(3)"];
2019-11-22 00:32:36 +08:00
sched [color="#c46747",
2019-11-22 00:31:50 +08:00
fillcolor="#6a9ab1",
2019-11-22 00:32:36 +08:00
label=Scheduler];
sync -> sched [color="#c46747",
2019-11-22 00:31:50 +08:00
style="filled,setlinewidth(3)"];
2019-11-22 00:32:36 +08:00
IRQ [color="#c46747",
2019-11-22 00:31:50 +08:00
fillcolor="#71809b",
fontsize=10,
2019-11-22 00:32:36 +08:00
label="interrupts\ncore,\nCPU arch"];
sched -> IRQ [color="#c46747",
2019-11-22 00:31:50 +08:00
style="filled,setlinewidth(3)"];
2019-11-22 00:32:36 +08:00
CPU [color="#c46747",
2019-11-22 00:31:50 +08:00
fillcolor="#777777",
fontcolor=white,
fontsize=10,
2019-11-22 00:32:36 +08:00
row=chip];
IRQ -> CPU [color="#c46747",
2019-11-22 00:31:50 +08:00
style="filled,setlinewidth(3)"];
}
{
node [color="#cfbf57ff",
2019-11-22 00:32:36 +08:00
style="filled,setlinewidth(3)"
2019-11-22 00:31:50 +08:00
];
2019-11-22 00:44:15 +08:00
edge [color="#cfbf57ff", weight=10];
HI_ [color="#cfbf57ff",
fixedsize=true,
2019-11-22 00:32:36 +08:00
height=0,
shape="",
style=invis,
width=0];
HI [color="#cfbf57ff",
2019-11-22 00:31:50 +08:00
fillcolor=white,
fixedsize=true,
height=0.4,
2019-11-22 00:44:15 +08:00
fontsize=11,
2019-11-22 00:31:50 +08:00
label="human\ninterface",
row=func,
width=1];
2019-11-22 00:32:36 +08:00
HI -> HI_ [arrowhead="",
color="#cfbf57ff",
row=func,
style="filled,setlinewidth(3)"];
char [color="#cfbf57ff",
2019-11-22 00:31:50 +08:00
fillcolor="#d9e7ee",
fixedsize=true,
label="char\ndevices",
row=usr,
2019-11-22 00:32:36 +08:00
shape=ellipse];
input [color="#cfbf57ff",
2019-11-22 00:31:50 +08:00
fillcolor="#b2d3e4",
2019-11-22 00:32:36 +08:00
label="input\nsubsystem"];
char -> input [color="#cfbf57ff",
2019-11-22 00:31:50 +08:00
style="filled,setlinewidth(3)"];
2019-11-22 00:32:36 +08:00
F7 [color="#cfbf57ff",
2019-11-22 00:31:50 +08:00
fillcolor="#6a9ab1",
2019-11-22 00:32:36 +08:00
label="HI class\ndrivers"];
input -> F7 [color="#cfbf57ff",
2019-11-22 00:31:50 +08:00
style="filled,setlinewidth(3)"];
2019-11-22 00:32:36 +08:00
G7 [color="#cfbf57ff",
2019-11-22 00:31:50 +08:00
fillcolor="#71809b",
fontsize=10,
2019-11-22 00:32:36 +08:00
label="HI\nperipherals\ndrivers"];
F7 -> G7 [color="#cfbf57ff",
2019-11-22 00:31:50 +08:00
style="filled,setlinewidth(3)"];
2019-11-22 00:32:36 +08:00
H7 [color="#cfbf57ff",
2019-11-22 00:31:50 +08:00
fillcolor="#777777",
fontcolor=white,
fontsize=10,
label="display, keyboard,\nmouse, audio",
2019-11-22 00:32:36 +08:00
row=chip];
G7 -> H7 [color="#cfbf57ff",
2019-11-22 00:31:50 +08:00
style="filled,setlinewidth(3)"];
2019-11-18 13:21:35 +08:00
}
{
graph [rank=same];
2019-11-22 00:32:36 +08:00
edge [style=invis,
2019-11-22 00:44:15 +08:00
weight=1
2019-11-22 00:32:36 +08:00
];
2019-11-18 13:21:35 +08:00
system;
networking;
system -> networking;
storage;
networking -> storage;
2019-11-22 00:32:36 +08:00
memory [color="#51bf5b",
fillcolor=white,
fixedsize=true,
height=0.4,
2019-11-22 00:32:36 +08:00
row=func,
width=1];
2019-11-18 13:21:35 +08:00
storage -> memory;
processing;
HI;
processing -> HI;
functions_ [fixedsize=true,
height=0,
shape="",
style=invis,
width=0];
functions_ -> system;
memory -> processing;
2019-11-22 00:32:36 +08:00
functions [color=gray,
fillcolor=gray,
fixedsize=true,
height=0.4,
2019-11-22 00:32:36 +08:00
row=func,
style=dashed,
width=0.8];
functions -> functions_ [arrowhead="",
color=gray,
style="",
weight=""];
2019-11-18 13:21:35 +08:00
}
{
graph [rank=same];
SCI;
sock;
FS;
proc;
char;
usr_ [fixedsize=true,
height=0,
shape="",
style=invis,
width=0];
2019-11-22 00:32:36 +08:00
usr [fillcolor="#d9e7eeff",
fixedsize=true,
label="user space\ninterfaces",
row=usr,
shape=ellipse,
style="filled,setlinewidth(0)"];
MA [color="#51bf5b",
fillcolor="#d9e7ee",
fixedsize=true,
label="memory\naccess",
row=usr,
shape=ellipse];
2019-11-18 13:21:35 +08:00
}
2019-11-21 23:09:09 +08:00
{
2019-11-22 00:32:36 +08:00
edge [style=invis,
weight=10
];
system_;
SCI;
system_ -> SCI;
networking_;
sock;
networking_ -> sock;
storage_;
FS;
2019-11-21 23:09:09 +08:00
storage_ -> FS;
2019-11-22 00:32:36 +08:00
processing_;
proc;
2019-11-21 23:09:09 +08:00
processing_ -> proc;
2019-11-22 00:32:36 +08:00
HI_;
char;
2019-11-21 23:09:09 +08:00
HI_ -> char;
MA;
memory_ [fixedsize=true,
2019-11-22 00:32:36 +08:00
height=0,
shape="",
style=invis,
width=0];
memory_ -> MA;
}
{
graph [rank=same];
2019-11-18 13:21:35 +08:00
sysfs;
prot_fam;
VFS;
Tasks;
input;
D0 [fixedsize=true,
height=0,
shape="",
style=invis,
width=0];
2019-11-22 00:32:36 +08:00
virt [fillcolor="#b2d3e4",
label="virtual\nsubsystems",
style="filled,setlinewidth(0)"];
VM [color="#51bf5b",
fillcolor="#b2d3e4",
label="Virtual\nmemory"];
2019-11-18 13:21:35 +08:00
}
{
graph [rank=same];
node [fontcolor=white];
DM;
NFS;
mmap;
sync;
2019-11-22 00:32:36 +08:00
E0 [fixedsize=true,
fontcolor=white,
2019-11-22 00:32:36 +08:00
height=0,
shape="",
style=invis,
width=0];
bridges [fillcolor="#91b5c9",
fontcolor=white,
2019-11-22 00:32:36 +08:00
shape=octagon,
style="filled,setlinewidth(0)"];
2019-11-18 13:21:35 +08:00
}
{
graph [rank=same];
log_sys;
log_prot;
logFS;
sched;
F7;
F0 [fixedsize=true,
height=0,
shape="",
style=invis,
width=0];
2019-11-22 00:32:36 +08:00
logical [fillcolor="#6a9ab1",
style="filled,setlinewidth(0)"];
log_mem [color="#51bf5b",
fillcolor="#6a9ab1",
label="logical\nmemory"];
2019-11-18 13:21:35 +08:00
}
{
graph [rank=same];
bus_drv;
netif;
block;
PA;
IRQ;
G7;
G0 [fixedsize=true,
height=0,
shape="",
style=invis,
width=0];
2019-11-22 00:32:36 +08:00
HWI [fillcolor="#71809b",
label="hardware\ninterfaces",
style="filled,setlinewidth(0)"];
2019-11-18 13:21:35 +08:00
}
{
graph [rank=same];
H2;
net_hw;
H4;
CPU;
H7;
H0 [fixedsize=true,
height=0,
shape="",
style=invis,
width=0];
2019-11-22 00:32:36 +08:00
HW [fillcolor="#777777",
fontcolor=white,
label="electronics,\nhardware",
row=chip,
style="filled,setlinewidth(0)"];
H5 [color="#51bf5b",
fillcolor="#777777",
fontcolor=white,
fontsize=10,
label="MMU, RAM",
row=chip];
}
subgraph mem {
node [color="#51bf5b",
height=0.5
];
edge [color="#51bf5b"];
PC;
mmap;
SW;
mmap -> SW [color="#51bf5b",
style="filled,setlinewidth(3)",
weight=0];
log_mem;
mmap -> log_mem [color="#51bf5b",
style="filled,setlinewidth(3)"];
PA;
2019-11-18 13:21:35 +08:00
H5;
2019-11-22 00:32:36 +08:00
PA -> H5 [color="#51bf5b",
style="filled,setlinewidth(3)"];
memory;
memory_;
2019-11-22 00:32:36 +08:00
memory -> memory_ [arrowhead="",
color="#51bf5b",
row=func,
style="filled,setlinewidth(3)"];
MA;
VM;
MA -> VM [color="#51bf5b",
style="filled,setlinewidth(3)"];
VM -> mmap [color="#51bf5b",
style="filled,setlinewidth(3)"];
log_mem -> PA [color="#51bf5b",
style="filled,setlinewidth(3)"];
2019-11-18 13:21:35 +08:00
}
2019-11-22 00:32:36 +08:00
bottom [label="© 2007-2019 Constantine Shulyupin http://www.MakeLinux.net/kernel/diagram",
2019-11-22 00:44:15 +08:00
shape=plaintext style=""];
2019-11-22 00:32:36 +08:00
H4 -> bottom [style="filled,setlinewidth(3)",
weight=""];
layers [fillcolor=lightgray,
height=0.1,
style="filled,setlinewidth(0)",
width=0.5];
functions -> layers;
usr -> usr_ [arrowhead="",
color="#d9e7eeff",
minlen=2,
style="filled,setlinewidth(3)"];
usr -> virt [color="#d9e7eeff",
style="filled,setlinewidth(3)"];
virt -> D0 [arrowhead="",
color="#b2d3e4",
minlen=2,
style="filled,setlinewidth(3)"];
virt -> bridges [color="#b2d3e4",
style="filled,setlinewidth(3)"];
bridges -> E0 [arrowhead="",
color="#91b5c9",
minlen=2,
style="filled,setlinewidth(3)",
weight=""];
bridges -> logical [color="#91b5c9",
style="filled,setlinewidth(3)"];
logical -> F0 [arrowhead="",
color="#6a9ab1",
minlen=2,
row=logical,
style="filled,setlinewidth(3)",
weight=""];
logical -> HWI [color="#6a9ab1",
row=logical,
style="filled,setlinewidth(3)"];
HWI -> G0 [arrowhead="",
color="#71809b",
minlen=2,
row=HWI,
style="filled,setlinewidth(3)",
weight=""];
HWI -> HW [color="#71809b",
row=HWI,
style="filled,setlinewidth(3)"];
HW -> H0 [arrowhead="",
color="#777777",
minlen=2,
row=chip,
style="filled,setlinewidth(3)",
weight=""];
layers -> usr [arrowhead="",
color=gray,
style="filled,setlinewidth(1)"];
2019-11-22 00:32:36 +08:00
LKD [fontsize=20,
2019-11-18 13:21:35 +08:00
label="Linux kernel diagram",
2019-11-22 00:44:15 +08:00
shape=plain style=""];
2019-11-18 13:21:35 +08:00
LKD -> storage;
}