Linux Device Drivers (3rd Edition) [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Linux Device Drivers (3rd Edition) [Electronic resources] - نسخه متنی

Jonathan Corbet, Greg Kroah-Hartman, Alessandro Rubini

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید








Chapter 7. Time, Delays, and Deferred Work


At this point, we know the basics of how to write a full-featured
char module. Real-world drivers, however, need to do more than
implement the operations that control a device; they have to deal
with issues such as timing, memory management, hardware access, and
more. Fortunately, the kernel exports a number of facilities to ease
the task of the driver writer. In the next few chapters,
we'll describe some of the kernel resources you can
use. This chapter leads the way by describing how timing issues are
addressed. Dealing with time involves the following tasks, in order
of increasing complexity:

  • Measuring time lapses and comparing times

  • Knowing the current time

  • Delaying operation for a specified amount of time

  • Scheduling asynchronous functions to happen at a later time



    / 202