Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

UserKernelDataAccess

This is the following step of "Character Device".

Implement the read and write interface between user and kernel space of the file operation.

copy_from_user and copy_to_user

Steps

  1. make
  2. insmod example.ko
  3. dmesg
  4. mknod /dev/example c 60 0
  5. chmod 666 /dev/example (for accessing from other users)
  6. Do some file operations with the /dev/example, like file open, read, write, close.
  7. dmesg
  8. rmmod example.ko
  9. rm /dev/example
  10. make clean