Interface functions between kernel space and hardware devices
There are also some functions in the kernel space to control devices or exchange information between the kernel and hardware. The following table describes these concepts. This table will also be improved with the introduction of some concepts.
Events
Kernel functions
Read data
Write Data
Table Device Driver events and related functions between k
, released in 1969, is the most widely used serial interface for embedded systems and is designed to connect DTE (data Terminal equipment) with DCE (data communication devices). The RS-232 standard interface has 25 interfaces (4 data lines, 11 control lines, 3 timing lines, 7 spare and undefined lines), only 9 are commonly used, they are rts/cts (request send/clear Send flow control), RXD/TXD (data transmit/receive), DSR/DTR (Data Terminal ready/ Data set Ready flow control), DCD (Data carrier d
The development environment of LDD3 recommended is 2.6.10, installed RHEL4-UPDATE4, its kernel version is 2.6.9.42, compiling the mmap program times wrong: Unknown symbol Remap_pfn_rangeOn the Internet, the above error should be changed to Remap_page_range, and Remap_page_range is no longer recommended, two kernel functions The second parameter definition is not the same: int Remap_page_range (struct vm_area_struct *vma, unsigned long from, unsigned long phys_addr,//
callingexit_kthreadAnd returning from the thread function. With a semaphorestop_kthread()Function blocks until the thread terminated.Initialization of New thread
Within the new created thread,init_kthread()Needs to be called. This function sets a signal mask, initialises a wait queue, the termination flag and sets a new name for the thread. Withup()Call it notifies the creator that the setup is done.Exit of New thread
When the thread waits es the notification to terminate itself, is calltheexit
= 0;i = 1; does {total + = $i; i++} while (total Gawk ' {total =0;-(i = 1;i Chapter 23rd using other shellsYou can try to learn to use zsh and support modularity.24th. Writing a simple script utilitySlightly25th. Create DATABASE, Web, and e-mail related scriptsThe side that writes the script to MySQL is available:MySQL mytest-u test Show tables;SELECT * FROM Employees where salary > 40000;Eofecho "This is a text message." | mail-s "Subject" [email protected]-b [email protected]-C [email protec
50423.6 zsh Script Programming 50823.6.1 Mathematical Operations 50823.6.2 Structured Commands 50923.6.3 function 51023.7 Summary 510Part IV Creating a useful script24th. Writing a simple script utility24.1 Archive 51424.2 Managing user Accounts 523Features required by 24.2.1 52324.2.2 Creating a script 53024.2.3 Running script 53524.3 Monitoring disk space 537Features required by 24.3.1 53724.3.2 Creating a script 54024.3.3 Running script 54124.4 Summary 54225th. Create scripts related to data
Note:Use of scull Devices
By:
Wu Yin
Date:
2007-07-05
Email:
Lazy. Fox. Wu # gmail.com
Homepage:
Http://blog.csdn.net/wooin
Copyright:
This article is copyrighted by Wu Yi. It can be freely transmitted and replicated for non-commercial purposes.For commercial purposes, any behavior in this article shall be approved by the author.Contact info: lazy. Fox. Wu # gmail.com
1.
Preface:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.