procfs1: Fix parameter descriptions (#34)

In "procfs1.c," the "buffer" is actually the second parameter of procfile_read().
The "offset" is the fourth one.
This commit is contained in:
demonsome 2021-08-02 23:01:34 +08:00 committed by GitHub
parent 65a8f5a1d6
commit 45769753d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -933,7 +933,7 @@ The return value is a \textbf{struct proc\_dir\_entry} , and it will be used to
A null return value means that the creation has failed.
Each time, everytime the file \textbf{/proc/helloworld} is read, the function \textbf{procfile\_read} is called.
Two parameters of this function are very important: the buffer (the first parameter) and the offset (the third one).
Two parameters of this function are very important: the buffer (the second parameter) and the offset (the fourth one).
The content of the buffer will be returned to the application which read it (for example the cat command).
The offset is the current position in the file.
If the return value of the function is not null, then this function is called again.