Skip to content

Commit 9db8c92

Browse files
committed
Improve the description of proc in file-ops
Currently, the description of the proc_ops in the file operation section will confuse the reader with registering the device. Add more hints to avoid it.
1 parent 637e707 commit 9db8c92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lkmpg.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,8 @@ \subsection{The file\_operations Structure}
954954
Since Linux v3.14, the read, write and seek operations are guaranteed for thread-safe by using the \cpp|f_pos| specific lock, which makes the file position update to become the mutual exclusion.
955955
So, we can safely implement those operations without unnecessary locking.
956956

957-
Since Linux v5.6, the \cpp|proc_ops| structure was introduced to replace the use of the \cpp|file_operations| structure when registering proc handlers.
957+
Additionally, since Linux v5.6, the \cpp|proc_ops| structure was introduced to replace the use of the \cpp|file_operations| structure when registering proc handlers.
958+
See more information in the \ref{sec:proc_ops} section.
958959

959960
\subsection{The file structure}
960961
\label{sec:file_struct}

0 commit comments

Comments
 (0)