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 [2019/12/14 17:18] – [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 125: Line 128:
 lsmod lsmod
 </code> </code>
- 
-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
-</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.1576343917.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki