Skip to content

Commit

Permalink
Fix a typo
Browse files Browse the repository at this point in the history
There is an extra "the", remove it.
  • Loading branch information
algonell committed Feb 4, 2025
1 parent 3cb12d6 commit 1bb3f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lkmpg.tex
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ \subsection{Hello and Goodbye}
\label{hello_n_goodbye}
In early kernel versions you had to use the \cpp|init_module| and \cpp|cleanup_module| functions, as in the first hello world example, but these days you can name those anything you want by using the \cpp|module_init| and \cpp|module_exit| macros.
These macros are defined in \src{include/linux/module.h}.
The only requirement is that your init and cleanup functions must be defined before calling the those macros, otherwise you'll get compilation errors.
The only requirement is that your init and cleanup functions must be defined before calling those macros, otherwise you'll get compilation errors.
Here is an example of this technique:
\samplec{examples/hello-2.c}
Expand Down

0 comments on commit 1bb3f64

Please sign in to comment.