Skip to content

Commit

Permalink
Merge pull request #291 from algonell/master
Browse files Browse the repository at this point in the history
Fix a typo
  • Loading branch information
jserv authored Feb 4, 2025
2 parents 3cb12d6 + 1bb3f64 commit a035231
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 a035231

Please sign in to comment.