= Four database books =
1. Linux kernel design and implementation 2 edition
This book is very thin (290 pages), but covers all aspects of the Linux kernel and is an entry-level book. However, the kernelCodeI will not talk too much about it, mainly
0.11 the kernel maintains three terminals, one display and one keyboard, and the other two are serial ports 1 and 2. Each terminal maintains three read/write queues and auxiliary buffer queues. For each Buffer Queue, read operations take characters
Compile geekos:
Open the terminal and enter the following three commands.
Cd ~ /Geekos-0.3.0/src/project0/build/Note :~ Not less ,~ The main directory of the current user. Makebochs
Possible problems
1. This error occurs during the first make
Mount is used to mount the file system. It can be mounted at startup or after startup. You can use the mount command to mount a device after startup. To enable automatic mounting of a device at startup, you must enable the autofs service to provide
A new driver management and registration mechanism has been introduced since Linux 2.6: platform_device and platform_driver.
Most device drivers in Linux can use this mechanism. The device is represented by platform_device and the driver is
It is divided into two parts. The first part is the kernel thread used to execute the function mounted on each node in the work queue, and the second part is the use of the work queue from the driver perspective.
Part 1 worker_thread kernel
Example: Hello. c hello. h main. c
1. Static LibraryGcc-C hello. cAr Cr libhello. A hello. oReference Library:-lhello
2. Dynamic libraryGcc-C hello. cGcc-shared-fpci-O libhello. So hello. oReference Library:-lhello
3. Specify the header fileGCC
Spin lock: Unlike semaphores, spin locks can be used in code that cannot be sleep, for example, interrupt the handler. A spin lock is usually implemented as a bit in an integer. The bit related to the Code test that you want to obtain a specific
Blocking I/O and sleep
When a process is put into sleep state, it is marked as a special State and transferred from the running queue of the scheduler (add the process to the waiting queue and wait for awakening ). Processes in sleep state are
Advanced Character Device Driver
I. IOCTLIn addition to reading and writing capabilities, most devices can perform operations beyond simple data transmission. Therefore, device drivers must also be able to perform various hardware control operations.
4. When registering I2C driver for analysis, it is necessary to analyze the initialization code of I2C architecture as follows: static int _ init i2c_init (void) {int retval; retval = bus_register (& Region); If (retval) return retval; retval =
Interrupt handling
The method for notifying the processor when a device generates an event is to interrupt the device. An "interrupt" is only a signal, which can be sent when the hardware needs attention from the processor. Linux processes
3. zimage Startup Process1. General Linux kernel startup process:1) for ARM Series processors, the zimage Entry Program is arch/ARM/boot/Compressed/head. S. It completes the following tasks in sequence: Enable MMU and cache, and
First, when the program requires a piece of memory that does not exist (that is, the page table items have marked that the corresponding page is not in the memory), the CPU is interrupted by a 80386 page error exception. When a process references a
Advanced sleep
1. The first step to put the process in sleep is to allocate and initialize a wait_queue_t structure, and then add it to the corresponding waiting sequence.
2. Set the city status and mark it as asking for sleep.
Task_running
Asynchronous notification:
The asynchronous notification mechanism can improve the efficiency of device query. By using asynchronous notifications, applications can receive a signal when data is available, without the need to keep polling.
Procedure
Network File System (NFS) is a mechanism for attaching partitions (directories) on remote hosts to local systems through the network, with support for the network file system, you can operate on the shared partition (directory) of the remote host on
In some systems, we can perform an experiment on PPP dialing settings. Here we will focus on the content and process of the PPP dialing (Linux) on the liod platform. Hardware Platform: yidao liod platform (based on PXA270), operating system:
ARM Linux code analysis from entry to start_kernel-7 (end)
(16:08:30)
Reprinted
It
Category: Kernel
6. Switch data
In ARCH/ARM/kernel/head-common.S:
00014:. Type _ switch_data, % object00015: _ switch_data:00016:. Long _
After ubuntu10.4 is successfully installed on the VM
(1) Open the terminal Sudo-I and prompt to enter the password and then log on as root.(2) install g ++ apt-Get install g ++ Pentium-Builder(3) install the apt-Get install Samba smbfs software
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service