Skip to Content
Design and Implementation of the FreeBSD Operating System, 2nd Edition
book

Design and Implementation of the FreeBSD Operating System, 2nd Edition

by Marshall Kirk McKusick, George V. Neville-Neil, Robert N.M. Watson
September 2014
Intermediate to advanced
928 pages
31h 47m
English
Addison-Wesley Professional
Content preview from Design and Implementation of the FreeBSD Operating System, 2nd Edition

Chapter 8. Devices

8.1 Device Overview

This chapter describes the part of the system that interfaces with the hardware as is shown in the bottom part of Figure 7.1. Historically, the device interface was static and simple. Devices were discovered as the system was booted and did not change thereafter. Filesystems were built in a partition of a single disk. When a disk driver received a request from a filesystem to write a block, it would add the base offset of the partition and perform a bounds check based on information from its disk label. It would then do the requested I/O and return the result or error to the filesystem. A typical disk driver could be written in a few hundred lines of code.

As the system has evolved, the complexity of the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Design and Implementation of the FreeBSD Operating System, The

Design and Implementation of the FreeBSD Operating System, The

Marshall Kirk McKusick, George V. Neville-Neil

Publisher Resources

ISBN: 9780133761825Purchase book