Virtual File System VFS
Virtual File System VFS (Part 2)
9 catalog item object
VFS treats directories as files, so in the path / bin/vi, bin and vi belong to files - bin is a special directory file, vi is an ordinary file, and each component in the path is represented by an index node object. Although it can be uniformly represented by index nodes, VFS needs to ofte ...
Posted by ihw13 on Sat, 29 Jan 2022 08:00:26 +0100
Analysis of running time sequence of TCP/IP protocol stack in Linux kernel
1 Linux overview
1.1 introduction to Linux operating system architecture
Linux operating system is generally composed of Linux kernel and GNU system. Specifically, it is composed of four main parts, namely Linux kernel, Shell, file system and application program. Kernel, Shell and file system constitute the basic structure of the operating sy ...
Posted by johnoc on Fri, 28 Jan 2022 06:16:59 +0100
TC source code analysis II, the location of flow control code in the kernel
tc source code analysis II, the location of flow control code in the kernel
Kernel version used
Linux 4.3
Problem exploration
We should study the source code. In addition to being curious about the way the code is written, we are most concerned about the actual logic of the code, so that we can easily understand what is happening inside. Be ...
Posted by mysterbx on Thu, 27 Jan 2022 22:27:53 +0100
Source code analysis of Hongmeng light kernel: Newlib C
Abstract: This paper introduces the implementation of LiteOS-M kernel Newlib C, especially the file system and memory allocation release part, and finally introduces the Newlib hook function.
This article is shared from Huawei cloud community< Hongmeng light kernel M core source code analysis series 20 Newlib C >, author: zhushy.
When ...
Posted by miancu on Wed, 26 Jan 2022 08:29:35 +0100
Jetson basic notes 2 -- source code compilation and KO generation
Kernel source code compilation
For the Jetson board made by yourself, you generally need to modify the device tree and driver, compile, and then replace the kernel image and device tree. Refer to the following Makefile file:
make env_ Dependent, installation environment dependentmake download, download the BSP source code (Sources include ...
Posted by Singularity on Sun, 23 Jan 2022 15:28:14 +0100
buddy of linux kernel
buddy algorithm is an old module in the kernel, which solves the problem of adjacent physical memory fragmentation, namely "internal fragmentation problem". At the same time, it takes into account the efficiency of memory application and release. Since the introduction of the algorithm, the kernel has been able to complete good luck o ...
Posted by sparq on Fri, 14 Jan 2022 19:14:33 +0100
Linux system call II -- call mechanism
0 background
The previous blog gave an overview of system calls. Interested partners can check it out: One of Linux system calls -- overview and introduction , here is the main introduction to the system call mechanism.
Whether it is GUI (user graphical interface), application program, or command line interface, it needs to be implemented by ...
Posted by xnor82 on Sun, 09 Jan 2022 09:08:57 +0100
Path to the file system mount point
1. About pathname lookup
1.1 treatment process
VFS pathname lookup, that is, how to export the corresponding inode from the file pathname. This process can be briefly described as: check the directory entry matching the first name to obtain the corresponding index node. Then, read the directory file containing that inode from the disk, and ch ...
Posted by plisken on Tue, 04 Jan 2022 17:03:28 +0100
Understand linux virtual network device veth
The previous chapter introduced linux network namespace, and then discussed how to make an independent network namespace communicate with the host network. Here we need to use the linux virtual network device veth.
veth equipment
veth devices always appear in pairs. They are usually used to connect different network namespaces (hereinafter re ...
Posted by pumaf1 on Mon, 03 Jan 2022 13:36:18 +0100
Interprocess communication (IPC): nameless pipe and named pipe
Nameless pipe ❤️ ❤️ ❤️
Pipe is also called anonymous pipe. It is the oldest form of IPC (interprocess communication) in UNIX system. All UNIX systems support this communication mechanism.When the parent process calls the pipe function, the kernel will create a cache in the kernel space when executing the pipe function. This cache is the ...
Posted by mraza on Tue, 28 Dec 2021 17:22:29 +0100