@@ -1234,7 +1234,7 @@ \subsection{Manage /proc file with seq\_file}
1234
1234
The \cpp |seq_file| API starts a sequence when a user read the \verb |/proc | file.
1235
1235
1236
1236
A sequence begins with the call of the function \cpp |start()|.
1237
- If the return is a non \cpp |NULL| value, the function \cpp |next()| is called.
1237
+ If the return is a non \cpp |NULL| value, the function \cpp |next()| is called; otherwise, otherwise, the \cpp |stop()| function is called directly .
1238
1238
This function is an iterator, the goal is to go through all the data.
1239
1239
Each time \cpp |next()| is called, the function \cpp |show()| is also called.
1240
1240
It writes data values in the buffer read by the user.
@@ -1251,13 +1251,12 @@ \subsection{Manage /proc file with seq\_file}
1251
1251
\begin {tikzpicture }[node distance=2cm, thick]
1252
1252
\node (start) [startstop] {start() treatment};
1253
1253
\node (branch1) [decision, below of=start, yshift=-1cm] {return is NULL?};
1254
- \node (emptynode) [right of=branch1, xshift=2cm] {Yes};
1255
1254
\node (next) [process, below of=branch1, yshift=-1cm] {next() treatment};
1256
1255
\node (branch2) [decision, below of=next, yshift=-1cm] {return is NULL?};
1257
1256
\node (stop) [startstop, below of=branch2, yshift=-1cm] {stop() treatment};
1258
1257
1259
1258
\draw [->] (start) -- (branch1);
1260
- \draw [->] (branch1) -- node[anchor=east ] {} (emptynode );
1259
+ \draw [->] (branch1.east) to [out=135, in=-135, bend left=45] node [right ] {Yes } (stop.east );
1261
1260
\draw [->] (branch1) -- node[left=2em, anchor=south] {No} (next);
1262
1261
\draw [->] (next) -- (branch2);
1263
1262
\draw [->] (branch2.west) to [out=135, in=-135, bend left=45] node [left] {No} (next.west);
0 commit comments