Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Develop a device driver that can be loaded and run in Linux. Then add some functionality to the device driver such as the user /
Develop a device driver that can be loaded and run in Linux. Then add some functionality to the device driver such as the userapplication passing in a string to the device driver and the device driver returns an encrypted version of the string or passes in the encrypted string and returns the original string. Include a document on how to build, load and interact with the device driver along with screen shots of output.
Requirements: It must be written in C It must be a valid an loadable device driver with at least some userapplication functionality. That includes an open, release, read, write, and at least one ioctl command. It must also be able to be unloaded, and indicate that it has unloaded from the system. Make use of the printk and copytouser functions. The read and write functions should follow the concept of linux files and be relevant to reading or writing.
Part of the grading of the driver will be based on the functionality you choose to implement. It can not be trivial functionality.
This must be run in the linux virtual machine.
You must also write a user application that utilizes your device driver.
There are TWO directories in your GitHub: The first is Module that has your kernel module. The second is Test that will have your test user application.
The writeup should have a detailed description of what your device driver does and clear instructions on how to build your kernel module and your test program and how to install the kernel module and how to use your test program.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started