Skip to content

ananth102/virtual-character-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtual Character driver

This project is a driver for a virtual character device that supports an unlimited amount of read/writes.

Installation

To run the program first initlize the device file using

$ ./init.sh

To check if this was successfull:

$ ls /dev

If it works than a virt300 file should appear.

To run the driver use

$ make
$ sudo insmod virt.ko

To dismount the driver and remove the small make residue use

$ sudo rmmod virt
$ make clean

To use the driver:

  • Use python an example script is FileTest.py, use "/dev/virt300" for the open function
  • C can also be used, use "/dev/virt300" for the open function

Testing

  • Use ./testCH.sh to test the driver, and dmesg to see if any errors occured.
  • cat /proc/devices can be used to check if there was any initlization error.

About

Virtual character driver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published