Skip to content

Commit a855812

Browse files
committed
Revise the depiction of return type of proc_create().
1 parent 7ae8eac commit a855812

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lkmpg.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ \section{The /proc File System}
11451145
There are three parts: create the file \verb|/proc/helloworld| in the function \cpp|init_module|, return a value (and a buffer) when the file \verb|/proc/helloworld| is read in the callback function \cpp|procfile_read|, and delete the file \verb|/proc/helloworld| in the function \cpp|cleanup_module|.
11461146

11471147
The \verb|/proc/helloworld| is created when the module is loaded with the function \cpp|proc_create|.
1148-
The return value is a \cpp|struct proc_dir_entry|, and it will be used to configure the file \verb|/proc/helloworld| (for example, the owner of this file).
1148+
The return value is a pointer to \cpp|struct proc_dir_entry|, and it will be used to configure the file \verb|/proc/helloworld| (for example, the owner of this file).
11491149
A null return value means that the creation has failed.
11501150

11511151
Every time the file \verb|/proc/helloworld| is read, the function \cpp|procfile_read| is called.

0 commit comments

Comments
 (0)