Merge pull request #3 from ekangmonyet/minor-fixes

Typo at 0.7.3 Manage /proc file with seq_file
This commit is contained in:
Jim Huang 2021-07-23 14:31:18 +08:00 committed by GitHub
commit 78ca9884de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -783,7 +783,7 @@ formating a /proc file for output. It's based on sequence, which is composed of
A sequence begins with the call of the function start(). If the return is a
non NULL value, the function next() is called. This function is an iterator, the goal is to go thought all the data. Each time next() is called, the function show() is also called. It writes data values in the buffer read by the user. The function next() is called until it returns NULL. The sequence ends when next() returns NULL, then the function stop() is called.
BE CARREFUL: when a sequence is finished, another one starts. That means that at the end of function stop(), the function start() is called again. This loop finishes when the function start() returns NULL. You can see a scheme of this in the figure "How seq\_file works".
BE CAREFUL: when a sequence is finished, another one starts. That means that at the end of function stop(), the function start() is called again. This loop finishes when the function start() returns NULL. You can see a scheme of this in the figure "How seq\_file works".
\begin{center}
\includegraphics[width=.9\linewidth]{img/seq_file.png}