Skip to content

misael-diaz/driver-dev-linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

driver-dev-linux

linux driver development codecamp

compile the module

to compile the module simply issue the following command on the console:

make

if you want to clean up, then use

make clean

load the driver module

insert the module via the command as root user:

insmod ldd.ko

verify that the driver module was loaded

lsmod | grep ldd

if we don't see the ldd driver listed something has gone wrong

write operation

echo "msg" > /proc/ldd_driver

read operation

cat /proc/ldd_driver

check kernel messages

dmesg

we should see all the output generated by printk() by our driver

unload the driver module

rmmod ldd

note that we don't need to use the .ko file extension here and that only root can do this

references

the code is based mostly on this codecamp video

About

linux driver development codecamp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors