linux:kernel:kernel_drivers:hello_world
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:kernel:kernel_drivers:hello_world [2019/12/14 17:18] – [Check if the module is loaded] peter | linux:kernel:kernel_drivers:hello_world [2022/10/08 11:41] (current) – [Load the module] peter | ||
---|---|---|---|
Line 116: | Line 116: | ||
</ | </ | ||
- | This will not display anything. | + | <WRAP info> |
+ | **NOTE: | ||
+ | </ | ||
---- | ---- | ||
Line 125: | Line 128: | ||
lsmod | lsmod | ||
</ | </ | ||
- | |||
- | and check if the **hello** module is loaded. | ||
returns: | returns: | ||
Line 162: | Line 163: | ||
<code bash> | <code bash> | ||
sudo rmmod hello.ko | sudo rmmod hello.ko | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Check message from module ===== | ||
- | |||
- | As mentioned above when the module was loaded it did not display that " | ||
- | |||
- | This message is actually written to the system log. | ||
- | |||
- | <code bash> | ||
- | tail / | ||
- | </ | ||
- | |||
- | returns: | ||
- | |||
- | <code bash> | ||
- | Dec 14 17:07:07 peter-bigmamba kernel: [74537.686507] Goodbye, cruel world | ||
</ | </ | ||
---- | ---- | ||
linux/kernel/kernel_drivers/hello_world.1576343917.txt.gz · Last modified: 2020/07/15 09:30 (external edit)