Writing Device Drivers
  Buscar sólo este libro
Descargar este libro en PDF

Preface

Writing Device Drivers describes how to develop device drivers for character-oriented devices, block-oriented devices, and Small Computer System Interface (SCSI) target devices.

Who Should Read This Book

The audience for this book is UNIX programmers familiar with UNIX device drivers. Several overview chapters at the beginning of the book provide background information for the detailed technical chapters that follow, but they are not intended as a general tutorial or text on device drivers.

How This Book Is Organized

This book discusses the development of a dynamically loadable and unloadable, multithreaded reentrant device driver applicable to all architectures that conform to the Solaris 2.x DDI/DKI.

Chapter Overview

Related Books

For information about writing STREAMS device drivers and modules, see the STREAMS Programmer's Guide. For more detailed reference information about the device driver interfaces, see sections 9, 9E (entry points), 9F (functions), and 9S (structures) of the Solaris 2.4 Reference Manual AnswerBook.

Typographic Conventions

The following table describes the meanings of the typefaces used in this book:
Typographic Conventions
TypefaceMeaningExample
constant widthC language symbol or UNIX commandddi_add_intr() registers a device interrupt with the system. add_drv adds a driver to the system.
italicPlaceholder for a value that the driver must supplyinumber is the number of the interrupt to register.
italicBook title, a new word or term, or an emphasized wordSee chapter 9 of the STREAMS Programmer's Guide.

A mutual exclusion lock is... Any device interrupts must be registered with the system.