-
Notifications
You must be signed in to change notification settings - Fork 2
/
epoll.drawio
181 lines (181 loc) · 15.7 KB
/
epoll.drawio
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<mxfile host="app.diagrams.net" modified="2021-06-14T08:32:21.569Z" agent="5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36" etag="NO4PJ7LBMsqrLMkOGkBX" version="14.7.7" type="github">
<diagram id="tZ-jy4j78BStJTzOApzN" name="Page-1">
<mxGraphModel dx="1186" dy="686" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="700" pageHeight="1000" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="phId5NGW30Dgw_bS_tOJ-29" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#333333;" parent="1" vertex="1">
<mxGeometry x="440" y="220" width="120" height="250" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-18" value="" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#333333;" parent="1" vertex="1">
<mxGeometry x="90" y="220" width="190" height="250" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-20" style="edgeStyle=orthogonalEdgeStyle;curved=1;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0.75;entryDx=0;entryDy=0;dashed=1;" parent="1" source="phId5NGW30Dgw_bS_tOJ-1" target="phId5NGW30Dgw_bS_tOJ-43" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="200" y="190" />
<mxPoint x="60" y="190" />
<mxPoint x="60" y="580" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-31" value="添加或删除fd" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="phId5NGW30Dgw_bS_tOJ-20" vertex="1" connectable="0">
<mxGeometry x="-0.4573" y="8" relative="1" as="geometry">
<mxPoint x="42" y="-54" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-1" value="epoll_ctl" style="rounded=1;whiteSpace=wrap;html=1;dashed=1;" parent="1" vertex="1">
<mxGeometry x="150" y="130" width="100" height="40" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-9" value="创建" style="rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;dashed=1;" parent="1" source="phId5NGW30Dgw_bS_tOJ-2" target="phId5NGW30Dgw_bS_tOJ-4" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-2" value="epoll_create" style="rounded=1;whiteSpace=wrap;html=1;dashed=1;" parent="1" vertex="1">
<mxGeometry x="300" y="130" width="100" height="40" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-3" value="epoll_wait" style="rounded=1;whiteSpace=wrap;html=1;dashed=1;" parent="1" vertex="1">
<mxGeometry x="450" y="130" width="100" height="40" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-4" value="eventpoll" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1">
<mxGeometry x="300" y="230" width="100" height="30" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-5" value="..." style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="300" y="260" width="100" height="40" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-27" style="edgeStyle=orthogonalEdgeStyle;curved=1;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0;entryDx=0;entryDy=0;" parent="1" source="phId5NGW30Dgw_bS_tOJ-6" target="phId5NGW30Dgw_bS_tOJ-22" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="440" y="320" />
<mxPoint x="440" y="263" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-28" value="rdllist" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="phId5NGW30Dgw_bS_tOJ-27" vertex="1" connectable="0">
<mxGeometry x="0.0243" y="-1" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-6" value="rdllist" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="300" y="300" width="100" height="40" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-17" value="<span style="font-size: 11px">rb_root</span>" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1.06;entryY=0.38;entryDx=0;entryDy=0;entryPerimeter=0;curved=1;" parent="1" source="phId5NGW30Dgw_bS_tOJ-7" target="phId5NGW30Dgw_bS_tOJ-8" edge="1">
<mxGeometry x="0.1765" y="10" relative="1" as="geometry">
<Array as="points">
<mxPoint x="280" y="360" />
<mxPoint x="280" y="267" />
</Array>
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-7" value="rbr" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="300" y="340" width="100" height="40" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-13" style="edgeStyle=none;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="phId5NGW30Dgw_bS_tOJ-8" target="phId5NGW30Dgw_bS_tOJ-10" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-16" value="rbn.rb_left" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="phId5NGW30Dgw_bS_tOJ-13" vertex="1" connectable="0">
<mxGeometry x="-0.2251" y="-1" relative="1" as="geometry">
<mxPoint y="3" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-14" value="rbn.rb_right" style="edgeStyle=none;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="phId5NGW30Dgw_bS_tOJ-8" target="phId5NGW30Dgw_bS_tOJ-11" edge="1">
<mxGeometry x="0.2106" y="10" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-8" value="rb_node" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="170" y="248" width="50" height="50" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-15" style="edgeStyle=none;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="phId5NGW30Dgw_bS_tOJ-10" target="phId5NGW30Dgw_bS_tOJ-12" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-10" value="rb_node" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="130" y="328" width="50" height="50" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-11" value="rb_node" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="210" y="328" width="50" height="50" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-12" value="rb_node" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="100" y="393" width="50" height="50" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-19" value="monitored fd structs" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="90" y="220" width="110" height="30" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-25" style="edgeStyle=orthogonalEdgeStyle;curved=1;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;startArrow=classic;startFill=1;" parent="1" source="phId5NGW30Dgw_bS_tOJ-22" target="phId5NGW30Dgw_bS_tOJ-23" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-22" value="list_head" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" parent="1" vertex="1">
<mxGeometry x="475" y="256" width="50" height="50" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-26" style="edgeStyle=orthogonalEdgeStyle;curved=1;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;startArrow=classic;startFill=1;" parent="1" source="phId5NGW30Dgw_bS_tOJ-23" target="phId5NGW30Dgw_bS_tOJ-24" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-23" value="hlist_node" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=11;" parent="1" vertex="1">
<mxGeometry x="475" y="331" width="50" height="50" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-24" value="hlist_node" style="ellipse;whiteSpace=wrap;html=1;aspect=fixed;fillColor=#fff2cc;strokeColor=#d6b656;" parent="1" vertex="1">
<mxGeometry x="475" y="406" width="50" height="50" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-32" style="edgeStyle=orthogonalEdgeStyle;curved=1;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;dashed=1;" parent="1" source="phId5NGW30Dgw_bS_tOJ-30" target="phId5NGW30Dgw_bS_tOJ-3" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-33" value="获取就绪fd<br><span style="font-size: 11px">epoll_event</span>" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="phId5NGW30Dgw_bS_tOJ-32" vertex="1" connectable="0">
<mxGeometry x="-0.15" y="-2" relative="1" as="geometry">
<mxPoint x="-2" y="1" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-30" value="List of <br>ready file descriptors" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1">
<mxGeometry x="440" y="220" width="120" height="30" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-37" style="edgeStyle=orthogonalEdgeStyle;curved=1;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;dashed=1;startArrow=none;startFill=0;" parent="1" source="phId5NGW30Dgw_bS_tOJ-34" target="phId5NGW30Dgw_bS_tOJ-24" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="500" y="570" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-38" value="ready" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="phId5NGW30Dgw_bS_tOJ-37" vertex="1" connectable="0">
<mxGeometry x="-0.809" relative="1" as="geometry">
<mxPoint x="12" y="-40" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-34" value="fd" style="rhombus;whiteSpace=wrap;html=1;strokeColor=#d6b656;fillColor=#fff2cc;" parent="1" vertex="1">
<mxGeometry x="433" y="549" width="42" height="42" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-49" style="edgeStyle=none;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;dashed=1;fontSize=11;startArrow=none;startFill=0;" parent="1" source="phId5NGW30Dgw_bS_tOJ-36" target="phId5NGW30Dgw_bS_tOJ-40" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-36" value="ovflist" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="300" y="376" width="100" height="40" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-40" value="<span style="font-size: 11px">epitem</span>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1">
<mxGeometry x="300" y="440" width="100" height="30" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-41" value="<span style="font-size: 11px">rb_node&nbsp;rbn</span>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" parent="1" vertex="1">
<mxGeometry x="300" y="510" width="100" height="40" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-47" style="edgeStyle=none;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=1;entryDx=0;entryDy=0;dashed=1;fontSize=11;startArrow=none;startFill=0;" parent="1" source="phId5NGW30Dgw_bS_tOJ-41" target="phId5NGW30Dgw_bS_tOJ-12" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-48" style="edgeStyle=none;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;dashed=1;fontSize=11;startArrow=none;startFill=0;" parent="1" source="phId5NGW30Dgw_bS_tOJ-42" target="phId5NGW30Dgw_bS_tOJ-24" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-42" value="<span style="font-size: 11px">hlist_node&nbsp;fllink</span>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" parent="1" vertex="1">
<mxGeometry x="300" y="470" width="100" height="40" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-45" style="rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;dashed=1;fontSize=11;startArrow=none;startFill=0;" parent="1" source="phId5NGW30Dgw_bS_tOJ-43" target="phId5NGW30Dgw_bS_tOJ-34" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-43" value="<span style="font-size: 11px">epoll_filefd&nbsp;</span><span style="font-size: 11px">ffd</span>" style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" parent="1" vertex="1">
<mxGeometry x="300" y="550" width="100" height="40" as="geometry" />
</mxCell>
<mxCell id="phId5NGW30Dgw_bS_tOJ-44" value="..." style="rounded=0;whiteSpace=wrap;html=1;fontSize=11;" parent="1" vertex="1">
<mxGeometry x="300" y="590" width="100" height="40" as="geometry" />
</mxCell>
<mxCell id="hhXDNmUAFB7AvJ6HU3tB-1" value="by holmofy" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontColor=#FF0000;" vertex="1" parent="1">
<mxGeometry x="450" y="600" width="110" height="30" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>