Character device driver Foundation
1, Open the road of driving development
1. Preparation for driving development (1) The development board of linux system running normally. It is required that the zImage of linux in the development board must be compiled by itself and cannot be compiled by others. Because you need a kernel source tree.
(2) The kernel source code tree is ac ...
Added by soul on Mon, 20 Dec 2021 08:49:27 +0200
Ubuntu18.04 detailed tutorial on permanently changing mac address
1, Preliminary preparation
1. As shown in the following figure, simply view the network card information using the ifconfig command to obtain the network card name and the corresponding mac address. 2. The root user executes the command: ll /etc | grep 'rc'; You can see the following files
wzl@wzl-ThinkPad-T14-Gen-1:/$ ll /etc | grep 'rc'
-r ...
Added by sasa on Mon, 20 Dec 2021 08:21:12 +0200
curl User Guide
Curl is a command-line tool that uploads or downloads data through the specified URL and displays the data. c in curl represents client, and URL is the URL. Here we introduce the use of curl.
1. Command line Basics
1.1 command line options
1. Short form
In curl, you can use short command-line options, such as telling curl to turn on verbose ...
Added by Gorillas on Mon, 20 Dec 2021 04:36:28 +0200
Project - order system
Project description
function
Users can access the server through the browser to obtain dish information and order meals;The administrator can access the server through the browser to realize the management of orders and dishes;
Technical point
Multithreading, socket, http, json, mysql, stl;
frame
Framework: simple MVC framework;M (Mod ...
Added by prabhuksmani on Mon, 20 Dec 2021 00:53:01 +0200
linux kernel - mandatory scheduling
The mandatory scheduling of processes in linux kernel, that is, involuntary, passive and deprivation scheduling, is mainly caused by time. As mentioned earlier, this scheduling occurs on the eve of the process returning from system space to user space. Of course, such scheduling does not occur every time you return from system space to user spa ...
Added by Brentley_11 on Mon, 20 Dec 2021 00:07:01 +0200
Android framework: Binder fully parses and understands everything
Link: https://juejin.im/post/6869953788388573192
Get ServiceManager from Java layer
In the previous article, I went to the getIServiceManager() method to get the ServiceManager object.
getIServiceManager()
//frameworks/base/core/java/android/os/ServiceManager.java
private static IServiceManager getIServiceManager() {
if (sServiceManager ...
Added by Cal on Sun, 19 Dec 2021 22:43:42 +0200
CentOS 8.0 64 install Nginx and configure the full version of SSL Certificate Module
1, Environmental preparation
1. Install gcc
To install nginx, you need to compile the source code downloaded from the official website, which depends on the gcc environment. The installation instructions are as follows:
yum install gcc-c++
2. Install PCRE devel
The Rewrite module and HTTP core module of Nginx will use PCRE regular express ...
Added by Jip on Sun, 19 Dec 2021 22:33:45 +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
Interviewer: rm delete the file space to free it?
In Linux, have you ever naively thought that if you delete a file with rm, the occupied space will be released? Things may not always be what you want.
Generates a random content file of a specified size
Let's take a look at the current space size of each mounted Directory:
$ df -h
/dev/sda11 454M 280M 147M 66% /boot
I selected ...
Added by wing_zero on Sun, 19 Dec 2021 19:57:48 +0200
[Java usage] detailed explanation of the usage of FileWriter, wirte() method and several overloaded methods
Contents of this article
1, Usage introduction
2, Question answer
2.1. What happens if this file does not exist?
2.2. What happens if this file exists?
2.3. If you don't want to overwrite the previous content, what should you do if you want to add content?
2.4. How to realize line feed when adding data?
3, Usage expansion
3.1. Overload ...
Added by plimpton on Sun, 19 Dec 2021 19:38:10 +0200