Merge pull request #305 from wurrrrrrrrrr/master
Some checks failed
build-deploy-assets / build (push) Has been cancelled
deploy-github-page / build (push) Has been cancelled
status-checks / validate (push) Has been cancelled

Fix grammar in the /proc file system section
This commit is contained in:
Jim Huang 2025-04-15 22:08:23 +08:00 committed by GitHub
commit 5ce6b0024a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1230,7 +1230,7 @@ Consider using this mechanism, in case you want to document something kernel rel
As we have seen, writing a \verb|/proc| file may be quite ``complex''.
So to help people writing \verb|/proc| file, there is an API named \cpp|seq_file| that helps formatting a \verb|/proc| file for output.
It is based on sequence, which is composed of 3 functions: \cpp|start()|, \cpp|next()|, and \cpp|stop()|.
The \cpp|seq_file| API starts a sequence when a user read the \verb|/proc| file.
The \cpp|seq_file| API starts a sequence when a user reads the \verb|/proc| file.
A sequence begins with the call of the function \cpp|start()|.
If the return is a non \cpp|NULL| value, the function \cpp|next()| is called; otherwise, the \cpp|stop()| function is called directly.