|
@@ -18,7 +18,7 @@
|
|
|
|
|
|
<h2 class='titleHead'>The Linux Kernel Module Programming Guide</h2>
|
|
<h2 class='titleHead'>The Linux Kernel Module Programming Guide</h2>
|
|
<div class='author'><span class='ecrm-1200'>Peter Jay Salzman, Michael Burian, Ori Pomerantz, Bob Mottram, Jim Huang</span></div><br />
|
|
<div class='author'><span class='ecrm-1200'>Peter Jay Salzman, Michael Burian, Ori Pomerantz, Bob Mottram, Jim Huang</span></div><br />
|
|
-<div class='date'><span class='ecrm-1200'>August 14, 2023</span></div>
|
|
|
|
|
|
+<div class='date'><span class='ecrm-1200'>September 1, 2023</span></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -2267,9 +2267,9 @@ yourself.
|
|
</p>
|
|
</p>
|
|
<h4 class='subsectionHead' id='manage-proc-file-with-seqfile'><span class='titlemark'>7.4 </span> <a id='x1-370007.4'></a>Manage /proc file with seq_file</h4>
|
|
<h4 class='subsectionHead' id='manage-proc-file-with-seqfile'><span class='titlemark'>7.4 </span> <a id='x1-370007.4'></a>Manage /proc file with seq_file</h4>
|
|
<!-- l. 1222 --><p class='noindent'>As we have seen, writing a <span class='obeylines-h'><span class='verb'><span class='ectt-1000'>/proc</span></span></span> file may be quite “complex”.
|
|
<!-- l. 1222 --><p class='noindent'>As we have seen, writing a <span class='obeylines-h'><span class='verb'><span class='ectt-1000'>/proc</span></span></span> file may be quite “complex”.
|
|
-So to help people writting <span class='obeylines-h'><span class='verb'><span class='ectt-1000'>/proc</span></span></span> file, there is an API named
|
|
|
|
|
|
+So to help people writing <span class='obeylines-h'><span class='verb'><span class='ectt-1000'>/proc</span></span></span> file, there is an API named
|
|
<code> <span class='ectt-1000'>seq_file</span>
|
|
<code> <span class='ectt-1000'>seq_file</span>
|
|
-</code> that helps formating a <span class='obeylines-h'><span class='verb'><span class='ectt-1000'>/proc</span></span></span> file for output. It is based on sequence, which is composed of
|
|
|
|
|
|
+</code> that helps formatting a <span class='obeylines-h'><span class='verb'><span class='ectt-1000'>/proc</span></span></span> file for output. It is based on sequence, which is composed of
|
|
3 functions: <code> <span class='ectt-1000'>start()</span>
|
|
3 functions: <code> <span class='ectt-1000'>start()</span>
|
|
</code>, <code> <span class='ectt-1000'>next()</span>
|
|
</code>, <code> <span class='ectt-1000'>next()</span>
|
|
</code>, and <code> <span class='ectt-1000'>stop()</span>
|
|
</code>, and <code> <span class='ectt-1000'>stop()</span>
|