1. Understanding of Device Drivers
Device DriverProgramIt is a software layer between the operating system and hardware. It provides an interface for upper-layer applications to access hardware and hides specific operations on hardware registers.
During socket programming, the IP address and port number are specified but cannot be connected. This is caused by the Character Sequence of the network address and the local host address.
Some operation functions are provided in Linux as follows:
If you need to install git, the source cannot be found and the record is as follows:
1. Linux EL5 x86_64
1.1 I have yum in this version, so I use Yum to install git. However, the source cannot be found for the first installation, and "nothing to
Because I really appreciate the open spirit of Linux and Microsoft's closed monopoly, I will choose Linux as my development platform. Linux is a very good learning platform. She demonstrated this advantage from the very beginning, and is even more
Copy others' logs ..
When I look at the kernel, I always encounter statements such as if (likely () {} Or if (unlikely (). I don't know what it means at first, so I want to introduce it.
Likely () and unlikely () are two macros defined in
System
# Uname-A # view kernel/OS/CPU information # Head-N 1/etc/issue # view OS version # Cat/proc/cpuinfo # view CPU information # hostname # view computer name # lspci-TV # list all PCI devices # lsusb-TV # list all USB devices # lsmod # list
Http://article.pchome.net/content-323089.html
1. Here is what I see online:
Sometimes we need to calculateProgramExecution time. For exampleAlgorithmTime Analysis
... You can use the following function at this time.
# Include Int gettimeofday
In ANSI compatible terminals (such as xterm, rxvt, and konsole), texts can be displayed in color, not just in black and white. This article demonstrates how to use bold and colored text.
I believe that every linux user must face bash. Although it
Linux allocates and releases page boxes in the memory area using a partner system.
For example, only 2 ^ n pages can be allocated for Linux distribution pages. The kernel maintains max_order linked lists. Each linked list records consecutive idle
The memory management mechanisms of modern operating systems include segment management and page management.Segment-based memory management refers to dividing the memory into segments. The starting address of each segment is the base address of the
1) The standard library (glibc) of malloc_check_gnu can debug dynamic memory through built-in debugging features. It is the malloc_check _ environment variable, which is not set by default, in old versions, the default value is 0, and in new
There are many different libraries in Linux,Moving them all to my OS is a very large task,There must be a plan for a task first. A more scientific method should be used to determine the shift order, as shown below:
First shift the lowest-level
In the network, many servers use Linux systems. To further improve the server performance, you may need to recompile the Linux kernel based on specific hardware and requirements. To compile the Linux kernel, you must follow the required steps.
Producer consumer problem: this problem describes two processes that share a fixed-size buffer-the so-called "producer" and "consumer"-problems that will occur during actual operation. The main function of the producer is to generate a certain
I. How to capture signals in the kernel
If the signal processing is a user-defined function, this function is called when the signal is delivered. This function is called capture signal. Because the code of the signal processing function is in the
N when creating a symbolic link, you must use an absolute path,For example:/Usr/local/cxxt/config-ToolsTo create/usr/bin/config-ToolsIf your current directory is in the cxxt directory, runLn-S./config-tools/usr/bin/config-ToolsRun config-tools.Too
This article was originally translated from instructor song Baohua's article, which was incorporated into a small system. If there is no suitable article in this series, it will be replaced with original articles.
++ ++ ++
Linux provides a
(1) NFS configuration:First, execute setup in shell. After the menu interface is displayed, select system services, press enter to enter the system service option menu, select [*] NFS in it, and then exit.(2) Vim/etc/exportsNFS server configuration,
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