mirror of
https://github.com/sysprog21/lkmpg.git
synced 2025-04-23 04:54:04 +08:00
Fix a typo
There is an extra "the", remove it.
This commit is contained in:
parent
3cb12d65a5
commit
1bb3f64bc1
@ -447,7 +447,7 @@ What happens?
|
||||
\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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user