mirror of
https://github.com/bashrc/LKMPG.git
synced 2018-06-11 03:06:54 +02:00
dot diagram
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2016-03-09 Wed 15:43 -->
|
||||
<!-- 2016-03-09 Wed 16:16 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>The Linux Kernel Module Programming Guide</title>
|
||||
|
||||
@@ -1492,12 +1492,19 @@ BE CARREFUL: when a sequence is finished, another one starts. That means that at
|
||||
|
||||
#+BEGIN_SRC dot :file img/seq_file.png
|
||||
digraph seq_file {
|
||||
yesnull [label="Yes" border=0];
|
||||
rankdir="LR";
|
||||
yesnull [label="Yes" penwidth=0];
|
||||
returnnull1 [label="return is NULL?" shape=diamond];
|
||||
returnnull2 [label="return is NULL?" shape=diamond];
|
||||
start [label="start() treatment" shape=box];
|
||||
next [label="next() treatment" shape=box];
|
||||
stop [label="stop() treatment" shape=box];
|
||||
|
||||
{ rank=source; start; returnnull1; }
|
||||
{ rank=source; returnnull1; next; }
|
||||
{ rank=source; next; returnnull2; }
|
||||
{ rank=source; returnnull2; stop; }
|
||||
|
||||
start -> returnnull1;
|
||||
returnnull1 -> next [label="No"];
|
||||
returnnull1 -> yesnull;
|
||||
|
||||
BIN
img/seq_file.png
BIN
img/seq_file.png
Binary file not shown.
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Reference in New Issue
Block a user