"Kernel kernel: per-cpu variable module writing"
Demand:
1. Create a per-cpu variable, initialize and modify it
2.per-cpu variable is a synchronization mechanism in Linux kernel. When all CPUs in the system access and share a variable V, CPU0 modifies the value of variable V.
CPU1 also modif ...
Posted by PhpMachine on Mon, 02 Sep 2019 08:23:18 +0200
# linux Kernel Learning 10 - Start with the first kernel module
linux Kernel Learning 10 - Start with the first kernel module
1. Preparations
c File
#include <linux/init.h>
#include <linux/module.h>
// The kernel module initialization function can load a kernel module through the insmod comman ...
Posted by iFlex on Sat, 31 Aug 2019 14:37:37 +0200
CMake Introduction - 04 - Custom Compilation Options
work environment
System: macOS Mojave 10.14.6
CMake: Version 3.15.0-rc4
Hello,World! - Custom compilation options
CMake allows you to add compilation options to your project, so that you can choose the most appropriate compilation solution based on the user's environment and needs.
For example, you can set the MathFunctions library as an opti ...
Posted by Zyx on Fri, 23 Aug 2019 11:57:36 +0200
Miniftp Project Learning Notes Packaging Parameter Configuration Module
Links to the original text: https://www.cnblogs.com/webor2006/p/4509729.html
Last time, we encapsulated the string tool module. This time, we mainly encapsulated the parameter configuration module. There are many configuration-related op ...
Posted by meir4u on Fri, 16 Aug 2019 15:37:01 +0200
How to use 7z SDK to compress files in VC
First login 7z official organization website https://www.7-zip.org/ Friends with poor English can switch to Chinese first.
Open the LZMA SDK page on the left and download the latest SDK and instructions as shown below.
After downloading, SD ...
Posted by Fruct0se on Tue, 13 Aug 2019 15:23:31 +0200
Qt5 Tutorial: Hello World Program
1. New Construction
Select New Project - > Application - > Qt Widgets Application - > Choose in the Welcom interface
Enter the project name Name, and select the project storage path, click Next. The next page continues to click Next (as the default project path, you decide not to check).
Select Base class as Qwidget, enter Class name ...
Posted by thehippy on Tue, 06 Aug 2019 13:59:26 +0200
linux kernel configuration and compilation
Configuration and compilation of linux kernel
Select the Linux kernel transplanted by Jiuding s5pv210 development board, and download the address as follows:
Links: http://pan.baidu.com/s/1sl15QMD Password: by3o
1. First check Makefile
Check Makefile to see two variables in Makefile: ARCH and CROS_COMPILE.
(1) Check whether the cross-co ...
Posted by wopopd83 on Sat, 15 Jun 2019 03:50:59 +0200
centos7 builds MySQL 5.7 high availability (MHA)
Database Architecture: One Primary and Two Subordinate
master: 192.168.0.11
slave1: 192.168.0.201
slave2: 192.168.0.202
MHA software: Download address
mha4mysql-manager-0.57.tar.gz
mha4mysql-node-0.57.tar.gz
The Manager Toolkit mainly includes the following tools:
Masha_check_ssh Checks the SSH configuration of MHA
Masha_check_repl che ...
Posted by MikeX on Sun, 02 Jun 2019 23:08:04 +0200
Write Makefile for small projects
This article takes one of my small projects as an example to illustrate the basic writing of Makefile files for GNU Make.Since I haven't read the GNU Make documentation carefully and don't know about the POSIX-compliant Makefile format, I may not be writing a Makefile very seriously, so don't hesitate to ask someone who is good at it.
My small ...
Posted by lingo5 on Thu, 30 May 2019 19:03:07 +0200
Compiling adb on arm platform
Refer to github: https://github.com/bonnyfone/adb-arm
The original purpose was to get shell privileges using adb shell after the arm platform compiled, and then avoid the problem that other privileges could not execute su.
At first, I modified the su.c in the android source code, commented out the root and shell permission validation part, co ...
Posted by Pepe on Sun, 19 May 2019 15:25:04 +0200