Linux system programming - process creation (fork), external program call (exec)
1. Introduction to fork function
fork function is a very important function in linux. It can create a new process from an existing process. The new process is a child process and the original process is a parent process.
The return value of fork function is as follows: 1. In the parent process, fork returns the PID number of the newly created ...
Added by adamjblakey on Thu, 27 Jan 2022 22:24:43 +0200
An interesting experience of Docker network troubleshooting. It feels like a dream
Some time ago, there was a problem with the company's Android packaging service. The phenomenon is that when uploading the 360 server for reinforcement, it is very likely to get stuck in the upload stage, retry for a long time, and finally fail. I have conducted some troubleshooting and Analysis on this situation, solved this problem, wrote thi ...
Added by formxshape on Thu, 27 Jan 2022 20:34:19 +0200
Managing environment variables with Modules
Managing environment variables with Modules
Official website link: http://modules.sourceforge.net/
Official documents: https://modules.readthedocs.io/en/latest/
1, What are Modules
Typically, users initialize their environment at login by setting environment information for each application they will reference during the session. The Environmen ...
Added by christiank on Thu, 27 Jan 2022 14:00:56 +0200
[linux kernel] how does the linux kernel mount the root file system
How does the linux kernel finally mount the root file system
1, Past life and present life
In kernel_ Kernel will be called in init thread function_ init_ Freeable() function, in the kernel_init_ Prepare will be called in the freeable function_ The namespace () function mounts the root file system.
[it's a long way to go, mounting begins!! ...
Added by markc1 on Thu, 27 Jan 2022 13:11:45 +0200
Container data volume based on Docker
Container data volume
What is a container data volume
Review of docker concept Package the application and environment into one image data If the data is in the container, we will delete the container and lose the data! Requirement: data can be persistent Mysql, delete the container, delete the database and run! Requirement: MySQL data ...
Added by pinxxx on Thu, 27 Jan 2022 10:17:01 +0200
Introduction to ROS learning_ Topic communication mechanism
1, Principle of topic communication
The implementation model of topic communication is complex, as shown in the figure below. The model involves three roles:
ROS Master (Manager) Talker (publisher) Listener (subscriber) The ROS Master is responsible for keeping the registered information of Talker and Listener, matching Talker and Listener wi ...
Added by adyre on Thu, 27 Jan 2022 09:06:24 +0200
Metasploit New Finger Guide
The general usage of Metasploit was described in the previous article, so this article focuses on the commands of the tool. Use it further, and follow and trust me if you are interested
Meterpreter System commands:
1,getuid Command: Used to return the captured or running user name on the target machine
2,getpid Command: used to return the curr ...
Added by dscuber9000 on Thu, 27 Jan 2022 03:43:00 +0200
Linux timer and time management
This part is about Linux kernel timer.
Basic concepts
System timer: a programmable hardware chip that can generate interrupts at a fixed frequency.
Timer interrupt: the interrupt generated by the fixed time cycle of the system timer, in which the interrupt handler is responsible for updating the system time and executing periodic tasks.
Dynam ...
Added by peranha on Thu, 27 Jan 2022 00:25:53 +0200
Linux learning notes (17.6) -- key driver based on asynchronous notification
Asynchronous notification When using sleep wake and POLL mechanisms, sleep is required. When waiting for an event to occur, the difference between them is that the latter can specify the duration of sleep. What if APP doesn't want to sleep? There are similar methods: when the driver has data, it actively notifies the APP, and the APP executes ...
Added by fxb9500 on Wed, 26 Jan 2022 22:52:41 +0200
Qinheng CH32F103C8T6: PlatformIO DAPLink and WCHLink download configuration
catalogue
Qinheng ch32f103c8t6 (I): Keil5 environment configuration, sample operation and burning
Qinheng ch32f103c8t6 (II): Linux PlatformIO environment configuration, sample operation and burning
Qinheng ch32f103c8t6 (III): download configuration of PlatformIO DAPLink and WCHLink
Burning with DAP link
DAP link is an open-source debugging ...
Added by High_-_Tek on Wed, 26 Jan 2022 22:35:58 +0200