1
0
mirror of https://github.com/bashrc/LKMPG.git synced 2018-06-11 03:06:54 +02:00

dot diagram

This commit is contained in:
Bob Mottram
2016-03-09 16:17:11 +00:00
parent 628b770c72
commit 5fc7b1fe9e
3 changed files with 9 additions and 2 deletions

View File

@@ -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>

View File

@@ -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;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB