Skip to content

Commit a035231

Browse files
authored
Merge pull request #291 from algonell/master
Fix a typo
2 parents 3cb12d6 + 1bb3f64 commit a035231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lkmpg.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ \subsection{Hello and Goodbye}
447447
\label{hello_n_goodbye}
448448
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.
449449
These macros are defined in \src{include/linux/module.h}.
450-
The only requirement is that your init and cleanup functions must be defined before calling the those macros, otherwise you'll get compilation errors.
450+
The only requirement is that your init and cleanup functions must be defined before calling those macros, otherwise you'll get compilation errors.
451451
Here is an example of this technique:
452452
453453
\samplec{examples/hello-2.c}

0 commit comments

Comments
 (0)