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:07] 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 126: Line 129:
 </code> </code>
  
-and check if the **hello** module is loaded.+returns: 
 + 
 +<code bash> 
 +Module                  Size  Used by 
 +hello                  16384 
 +.... 
 +</code> 
 + 
  
 ---- ----
Line 152: 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.1576343244.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki