Skip to content

ubob74/linux_kernel_driver_examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux kernel driver examples.

  1. waitqueue

The driver creates misc device. Test application opens the device and tries to readi a data. Driver function puts the process to waitqueue and starts timer. Timer elapsed in 2 seconds and wakes up the process.

  1. workqueue

The driver creates a list and allocates and puts to the list several entries. The number of entries in the list can be specified as a module parameter. Function test_wq_submit puts each entry from the list to the workqueue and each work will be delayed in specified jiffies.

  1. platform

The driver creates platform device with attribute "id". User can read and modify the attribute:

$ cat /sys/devices/platform/plat_test_driver/id $ echo 3 > /sys/devices/platform/plat_test_driver/id

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published