Skip to content

Example project on how to use the sysctl interface in a Linux driver

Notifications You must be signed in to change notification settings

StMartin81/sysctl_driver_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example for implementing a Linux driver which uses the sysctl interface.

The driver will create two files:

  • /proc/sys/dev/sysctl_dev/start_measurement
  • /proc/sys/dev/sysctl_dev/measurement_finished

The start_measurement interface waits until data was written to measurement_finished or a timeout occured.

The messaging interface can be tried out with the following commands:

$ cat /proc/sys/dev/sysctl_dev/start_measurement
$ echo test > /proc/sys/dev/sysctl_dev/measurement_finished (has to done in another terminal)

About

Example project on how to use the sysctl interface in a Linux driver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published