Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Hệ điều hành
Linux Device Drivers-Chapter 6 : Flow of Time
Đang chuẩn bị liên kết để tải về tài liệu:
Linux Device Drivers-Chapter 6 : Flow of Time
Ngọc Lam
51
53
pdf
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Tham khảo tài liệu 'linux device drivers-chapter 6 : flow of time', công nghệ thông tin, hệ điều hành phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Chapter 6 Flow of Time 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 necessary operations they have to deal with issues such as timing memory management hardware access and more. Fortunately the kernel makes a number of facilities available to ease the task of the driver writer. In the next few chapters we ll fill in information on some of the kernel resources that are available starting with how timing issues are addressed. Dealing with time involves the following in order of increasing complexity Understanding kernel timing Knowing the current time Delaying operation for a specified amount of time Scheduling asynchronous functions to happen after a specified time lapse Time Intervals in the Kernel The first point we need to cover is the timer interrupt which is the mechanism the kernel uses to keep track of time intervals. Interrupts are asynchronous events that are usually fired by external hardware the CPU is interrupted in its current activity and executes special code the Interrupt Service Routine or ISR to serve the interrupt. Interrupts and ISR implementation issues are covered in Chapter 9 Interrupt Handling . Timer interrupts are generated by the system s timing hardware at regular intervals this interval is set by the kernel according to the value of HZ which is an architecture-dependent value defined in linux param.h . Current Linux versions define HZ to be 100 for most platforms but some platforms use 1024 and the IA-64 simulator uses 20. Despite what your preferred platform uses no driver writer should count on any specific value of HZ. Every time a timer interrupt occurs the value of the variable jiffies is incremented. jiffies is initialized to 0 when the system boots and is thus the number of clock ticks since the computer was turned on. It is declared in linux sched.h as unsigned long volatile and will possibly overflow after a long time of continuous .
TÀI LIỆU LIÊN QUAN
Linux Device Drivers Linux Device Drivers, Third Edition
Creating a device-file node
UNDERSTANDING THE LINUX KERNEL 3RD EDITION
Develop Linux device drivers
Bài giảng Lập trình hệ nhúng: Chương 5 - Phạm Văn Thuận
Writing device drivers in Linux: A brief tutorial
Linux Device Drivers-Chapter 1 :An Introduction to Device Drivers
Dễ dàng hiển thị thông tin chi tiết về phần cứng trong Ubuntu 10.04.+1Nếu bạn cần biết các thông tin chi tiết về phần cứng PC của bạn, có một ứng dụng đơn giản, được gọi là GNOME Device Manager trong Ubuntu 10.04 mà cho phép bạn hiển thị các thông tin
A ‘ringbuffer’ application
Linux Device Drivers-Chapter 2 : Building and Running Modules
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.