Skip to content

Commit 78a7265

Browse files
authored
Merge pull request #311 from Jordymalone/sync_code_version
Align struct file_operations with upstream v6.14
2 parents b9ed1a7 + c98224e commit 78a7265

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lkmpg.tex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,9 @@ \subsection{The file\_operations Structure}
956956
Some operations are not implemented by a driver.
957957
For example, a driver that handles a video card will not need to read from a directory structure.
958958
The corresponding entries in the \cpp|file_operations| structure should be set to \cpp|NULL|.
959+
\footnote{
960+
As of Linux kernel 6.12, several member fields have been added, removed, or had their prototypes changed. For example, additions include \texttt{fop\_flags}, \texttt{splice\_eof}, and \texttt{uring\_cmd}; removals include \texttt{iterate} and \texttt{sendpage}; and the prototype for \texttt{iopoll} was modified.
961+
}
959962

960963
There is a gcc extension that makes assigning to this structure more convenient.
961964
You will see it in modern drivers, and may catch you by surprise.

0 commit comments

Comments
 (0)