FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

linux_kernel_driver/example/first_hello_driver_example at master · coder280/linux_kernel_driver · GitHub

Repository navigation

Latest commit

 

History

History
 
 
  1. linux_kernel_driver
  2. example

first_hello_driver_example

This is a simple example of modules.

Compile:
  Save this file name it helloworld.c
  # echo "obj-m := helloworld.o" > Makefile
  # make -Wall -C /lib/modules/`uname -r`/build M=`pwd` modules
Load the module:
  #insmod helloworld.ko


從/var/log/kern.log  insmod and rmmod printk 印出來字串

Back | FazBrowse Home | New Git URL