User Tools

Site Tools


linux:kernel:kernel_drivers:hello_world

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:kernel:kernel_drivers:hello_world [2022/10/08 11:39] – [Check if the module is loaded] peterlinux:kernel:kernel_drivers:hello_world [2022/10/08 11:41] (current) – [Load the module] peter
Line 116: Line 116:
 </code> </code>
  
-This will not display anything.+<WRAP info> 
 +**NOTE:**  This will not display anything. 
 +</WRAP> 
  
 ---- ----
Line 160: Line 163:
 <code bash> <code bash>
 sudo rmmod hello.ko sudo rmmod hello.ko
-</code> 
- 
----- 
- 
-===== Check message from module ===== 
- 
-As mentioned above when the module was loaded it did not display that "Goodbye, Cruel World" message. 
- 
-This message is actually written to the system log. 
- 
-<code bash> 
-tail /var/log/syslog 
-</code> 
- 
-returns: 
- 
-<code bash> 
-Dec 14 17:07:07 peter-bigmamba kernel: [74537.686507] Goodbye, cruel world 
 </code> </code>
  
 ---- ----
  
linux/kernel/kernel_drivers/hello_world.1665229148.txt.gz · Last modified: 2022/10/08 11:39 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki