Linux Process Control
1. Common system calls
Fork (), exec (), wait (), exit, getpid (), getppid ()
2. Process Synchronization
Signal,
MPs queue,
Pipelines are divided into famous and anonymous pipelines. Famous pipelines can
Linux Process Scheduling
1. Program vs Process
A program is an executable image of a sequence of code and data stored on a disk. It is a static object.
A process is an execution program and a dynamic entity.
2. Four Elements of a Linux Process there
Linux 2.6.32.2 driver code location
(Unzip the kernel source code (linux-2.6.32.2 at the beginning of the tgz Compression Files) can find the following driver, mini2440)Provides linux-2.6.32.2-Based Kernel 100% fully usable driver source code, no
There are two types of libraries: Dynamic and Static. Dynamic files are usually suffixed with. So, and static files are suffixed with.. For example, libtest. So libtest.. To use libraries of different versions in the same system, you can add the
Linux Device Driver Model Bus
Macro bus_attr
Create the bus_creat_file function for the device property of the bus. The format is as follows:
Int bus_create_file (struct bus_type * bus, struct bus_attribute * ATTR){Int error;If (bus_get (bus
Linux Device Driver: top half and bottom half of interrupt handling
The interruption of the device will interrupt the normal scheduling and operation of processes in the kernel. The system's pursuit of higher throughput is bound to require the
Common programming errors of Embedded Linux drivers
1. Warning: function declaration isn' t a prototypeThis kind of error is also very common, mainly for some function fixed format errors. For example, int function () is renamed as int function
Linux memory management
A process is a program running in a virtual address space. Any program running in Linux is a process. Most processes require virtual memory. Linux supports Virtual Memory, that is, the disk is used as the ram extension, and
Nor Flash Driver Design in Embedded Linux
The previous section details the MTD subsystem principles. This section describes the norflash Driver Design in embedded Linux. There are MTD character devices and MTD Block devices on the MTD device layer.
1
Find
Find is a very effective tool that can traverse the current directory or even the entire file system to find some files or directories.Main options:-Name: searches for files by file name-Perm searches for Objects Based on file
Linux dynamic connection principle
Note:
The following connector refers to, LD,
The loader refers to the ld-linux.so;
1. Got table;
Each item in the got (Global Offset Table) table is the address of a global variable or function to be referenced by
Note: The original header file is missing and can be added later.
There are two types of timers in Linux:
1. Alarm
Alarm () and signal () are enough if they are not required to be accurate.
Unsigned int alarm (unsigned int seconds)
Function
In Linux, many functions are loaded into the kernel only when necessary through the module method. In this way, the kernel can be simplified to improve efficiency and maintain greater flexibility. These Dynamically Loaded modules are usually system
InInstalling and using gnustep and objective-C on Linux, we covered the steps involved in installing the gnustep environment on Linux distributions for which pre-built gnustep packages are available. unfortunately, very few Linux distributions have
A blog is published in Windows with Windows Live writer. You can see it in Linux by name. However, there are also good clients in Linux, namely blogilo, which is part of the KDE Desktop Environment. It is installed on fedora 13 by default. Blogilo
1. Common shell and Shell operations under Fedora
Common shells include bash, CSH, tcsh, and KSh.
Operation: exit (from one shell to another), exec (from one shell to another)
2. Sleep Time
Sleep 5
Meaning: Sleep for 5 seconds
3. Common Directories
\
2011-9-23
Sed command usage reference: http://www.linuxsir.org/bbs/showthread.php? T = 189620, http://jiebaiyou.blog.163.com/blog/static/11624901820094201479719/
$ Sed '/test/{n; S/AA/BB/;}' example ----- if test is matched, move it to the next row
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