Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 890 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 890 Bytes

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.