[RT thread kernel details series] implementation of priority based full preemptive scheduling algorithm
The unexamined life is not worth living. Life without examination is not worth living. – Socrates
1, Principle overview
RT thread is not only an embedded real-time operating system (RTOS), but also an excellent Internet of things operating system. Compared with the bare metal polling scheduling algorithm, its thread (task) scheduling ...
Added by po on Sat, 08 Jan 2022 18:42:17 +0200
Basic Experiment 1: light up 2 LED lights
Catalogue of series articles
Porting Linux 0.0 GPIO operation from 11 to Hi3518EV200 development board
preface
By lighting the LED light through basic experiments, you can be familiar with some basic knowledge of the target hardware platform, such as memory address space range, how to configure multiplexing pins, how to operate GPIO, ho ...
Added by adamski on Wed, 05 Jan 2022 17:46:30 +0200
UNIX interprocess communication
UNIX interprocess communication mode
catalogue
1. Unnamed Pipes 2. Famous pipeline3. Shared memory4. Message queue5. Signal lamp
1. Unknown pipeline
1.1example:
1.1. 1. Anonymous pipeline is a half duplex communication mode. When both parties need to communicate, two pipelines need to be established, which can only be used for communica ...
Added by sohdubom on Fri, 31 Dec 2021 10:15:42 +0200
Hongmeng kernel source code analysis (root file system) | first hang to the file system on ` / '| 100 blogs analyze OpenHarmony source code | v66 01
A hundred blog series This article is:
v66.xx Hongmeng kernel source code analysis (root file system) | file system first attached to / | 51 .c .h .o
Relevant articles of the file system are:
v62.xx Hongmeng kernel source code analysis (document concept chapter) | why do you say everything is a document | 51 .c .h .ov63.xx Hongmeng ker ...
Added by dragin33 on Mon, 27 Dec 2021 17:11:45 +0200
Troubleshooting of CPU and IO idle but high load problems
background
For an online server, the monitoring alarm shows that the server load is high, reaching more than 100. Log in to the machine and use the top command to view. The CPU and IO utilization are low. At the same time, it is found that there are many ps and pidof processes in the system, and their process status is D. using the kill co ...
Added by SsirhC on Tue, 21 Dec 2021 12:11:56 +0200
Linux Kernel Schema Resolution - Linux file associations with processes
The relationship between a process and its open file If the file management system is the manager and provider of the file, then the process is the user of the file in the file system. That is, the relationship between the file management system and the process is the relationship between the service and the customer.
File object
When a proce ...
Added by vikela on Sun, 19 Dec 2021 20:04:39 +0200
Kernel rop attack 2018QWBcore replay
Foreword: I just started the core problem recently, so I'll learn from ctfwiki here. Don't spray...
The first step is classic... If the title is not given to vmlinux, it can be extracted through extract vmlinux.
See start SH finds that kalsr randomization is enabled, and the base address needs to be leaked. This is very similar to the pwn pro ...
Added by turkman on Sat, 18 Dec 2021 20:57:35 +0200
002 - Code of the first kernel module
What is a kernel module
Kernel module can be simply understood as a program running in kernel space. Like user space applications, it has a fixed pattern.
First kernel module
Let's start with a standard application
HelloWorld.c
#include "stdio.h"
int main(int argc, char** argv)
{
printf("Hello World!");
}
The above code will not be stra ...
Added by menelaus8888 on Sat, 23 Oct 2021 12:30:26 +0300