Question: In Chapters 4 and 5, you learned how device driver software synchronizes its behavior with device controller hardware (using the busy and done flags in

In Chapters 4 and 5, you learned how device driver software synchronizes its behavior with device controller hardware (using the busy and done flags in the controller’s status register). In the generic schema shown in Figure, the driver starts the device in operation, writes the I/O details to the device state table, then halts. The device handler software reads the details from the device status table, completes the I/O operation, then returns from the system call (to the calling program). Some operating systems (such as Linux) use a slightly different approach, relying on the presence of a synchronization mechanism in the kernel. Instead of writing the status to a device status table and halting, the driver simply blocks until the device handler tells it to unblock and return to the caller. Write a pseudocode description for the device driver and handler that illustrates how this works.

Appl App 2 I/O Controller

Step by Step Solution

3.32 Rating (173 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Device driver schema devread Keep all the IO state in the local variables for this function Poll ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

34-E-CE-OS (456).docx

120 KBs Word File

Students Have Also Explored These Related Computer Engineering Questions!