1. In shell, you can run the Env or set command to view the environment variable information of the current system.
2. Get the environment variable value:
Extern char * getenv (_ const char * _ name)
If the execution is successful, this
1. Interruption Mechanism
1 reuqest_irq is likely to sleep
2 Linux interruption cannot be reentrant.
3. Shared interruption. When an interruption occurs, each shared interrupt processing function is called in sequence.
4. Soft Interrupt
1. read/write Functions
The READ function reads data from open devices or files.
# Include
Ssize_t read (int fd, void * Buf, size_t count );
Returned value: the number of bytes read successfully. If an error occurs,-1 is returned and errno
Finally, Google found a lot of information about programming and development in GNU/Linux, but it is less and more complex than that in windows. GNU/Linux itself is an ide. This is the truth. You can achieve almost all the work in the console!
This Nic has never been used before.
The simplification is complicated first. You can outline it and get a global view.
0, Introduction
1. Framework
2. Implementation
0, Introduction
The NIC device has a special position in Linux. Unlike
Searching for a file in a vast Linux environment is a terrible task. I have tried many methods. The simplest and most convenient method is to use the locate command with the updatedb command:
For example, we want to find a file with the "Chen"
It took me a weekend to list it. Share it. I hope you can take a few minutes to see it. This is a practical search method in Linux.
Which (find the "execution file") [root @ localhost Home] # which [-A] command -: list all commands that can be
/Boot/boot0000300
Backup Master Boot Record.
/Boot. B
This is installed as the basic Boot Sector. in the case of most modern distributions it is actually a symbolic link to one of four files/boot/boot-bmp. B,/boot/boot-menu. B,
# Include # include # include # include # include # include # include # include # include # define bind_port 9999 # define buffsz 4096int main (INT argc, char * argv []) {// extern int socket (INT _ domain, int _ type, int _ protocol) //
I have been busy learning programming in Linux recently. Books mainly focus on . Tools mainly use CC, GCC compiler, gdb debugger, and VIM editor, I am not familiar with the Linux environment, so I didn't use the Linux operating system. I only
Document directory
Number of lines of the source code
Number of Files
Number of lines
Number of Files
Number of commits
Duration of Development
Diffstat
Main-page
Deutsche version.
Linux Kernel statistics
Historical Linux
Thread data processing-thread data
To protect variables, we must use semaphores, mutex, and other methods to ensure correct use of variables.
1) thread dataIn a single-threaded program, there are two basic types of data: global variables and
1. I have never paid attention to it before. The slightly written command option can only be followed by space and followed by parameters. The standard option can be followed by space or equal signs, such as the date command and date-r filename ;;
Like message queues, the shared memory also has its own data structure, as shown below:
Struct shmid_ds {Struct ipc_perm shm_perm;/* ownership and permissions */Size_tShm_segsz;/* size of segment (bytes )*/Time_tShm_atime;/* Last attach time
I. Virtual Memory
Segmentation: it is divided into code segments, data segments, and stack segments. Each memory segment is associated with a privileged level, that is, 0 ~ 3. 0 has the highest privilege level (kernel), and 3 is the lowest
Thread: A thread is created in a process, and its life cycle is in this process.
Thread: it allows a process to execute one or more execution paths (that is, a process can have multiple threads to execute different programs). These execution paths
I. Separation and hierarchy of Driver Design
Hierarchical Design can improve code reusability. It uses the existing code to perform some overloading or modifications to complete the driver design.
In addition to hierarchical design, there are also
25 [label: Linux, linked list function] When learning the kernel linked list, some people who want to know the following functions can answer the following questions about the functions and struct functions: struct list_head * PTR, what is this
1. Parent process behavior: Copy, waitThere are many ways to execute an application. It is common to execute an application from a shell. Interactive Shell is a process (all processes are obtained by the INIT process fork whose PID is 1. This topic
Interaction between Bootloader and Kernel The interaction between Bootloader and the kernel is one-way. bootloader transmits various parameters to the kernel. Because they cannot run at the same time, there is only one way to pass: bootloader places
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