The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Поиск:  Каталог документации / Документация по FreeBSD / Руководства по FreeBSD на английском

Chapter 27 Newbus

Table of Contents
27.1 Device Drivers
27.2 Overview of Newbus
27.3 Newbus API
Written by Jeroen Ruigrok van der Werven. Hiten Pandya.

Special thanks to Mathew N. Dodd, Warner Losh, Bill Paul. Daug Rabson, Mike Smith, Peter Wemm and Scott Long.

This chapter explains the Newbus device framework in detail.

27.1 Device Drivers

27.1.1 Purpose of a Device Driver

A device driver is a software component which provides the interface between the kernel's generic view of a peripheral (e.g. disk, network adapter) and the actual implementation of the peripheral. The device driver interface (DDI) is the defined interface between the kernel and the device driver component.

27.1.2 Types of Device Drivers

There used to be days in UNIX™, and thus FreeBSD, in which there were four types of devices defined:

  • block device drivers

  • character device drivers

  • network device drivers

  • pseudo-device drivers

Block devices performed in way that used fixed size blocks [of data]. This type of driver depended on the so called buffer cache, which had the purpose to cache accessed blocks of data in a dedicated part of the memory. Often this buffer cache was based on write-behind, which meant that when data was modified in memory it got synced to disk whenever the system did its periodical disk flushing, thus optimizing writes.

27.1.3 Character devices

However, in the versions of FreeBSD 4.0 and onward the distinction between block and character devices became non-existent.

This, and other documents, can be downloaded from ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/.

For questions about FreeBSD, read the documentation before contacting <questions@FreeBSD.org>.
For questions about this documentation, e-mail <doc@FreeBSD.org>.




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру