Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Store Development: Use gcc and the C programming language, on the version of Linux we have in our VM. Assignment: Write a character-mode Linux device

image text in transcribedStore

Development: Use gcc and the C programming language, on the version of Linux we have in our VM. Assignment: Write a character-mode Linux device driver as a kernel module. Your driver must: Store bytes written to it up to a constant buffer size (at least 1KB) Allow them to be read back out in FIFO fashion Remove them from the buffer as they are read back out Additionally, the driver must handle the following overflow conditions: If not enough buffer is available to store a write request, the driver must store only up to the amount available If not enough data is available to service a read request, the driver must respond with only the amount available (including 0 bytes) The driver will need to: Successfully initialize and de-initialize itself, including registering itself and obtaining a new major device number. Report using printk each time its character device is opened, closed, read or written. To do this, you will need to implement the expected device driver functions to: Initialize the kernel module. ellipsis including registering the device. You do not need to create the device file, but you do need to log the device number you are assigned so that mknod can be called to do so after your kernel module is installed. De-initialize the kernel module. ellipsis including de-registering the device. Open the device. Close the device. Read from the device. Write to the device

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions

Question

Understand how HRM can support a sustainable competitive advantage.

Answered: 1 week ago

Question

Working with other project stakeholders for support.

Answered: 1 week ago