Notes on Driver Development of Embedded Linux Devices (3)

I. Interrupt Source and Interrupt Number Interrupt is generated by hardware circuit, so if a peripheral has no independent interrupt line, it can not produce interrupt. The work of the interrupt controller is to collect the interrupts generated by the hardware, and then submit them to the cpu according to the pre-set priority. For arm proce ...

Posted by Xajel on Fri, 21 Jun 2019 14:00:41 -0700

curl of linux command

Curl command is a file transfer tool that uses URL rules to work on the command line. It supports the upload and download of files, so it is a comprehensive transmission tool, but according to tradition, curl is customarily called the download tool. It supports many protocols including HTTP, HTTPS, ftp, etc. It also supports POST, cookies, aut ...

Posted by kalpesh on Fri, 21 Jun 2019 12:33:26 -0700

Multithreaded synchronization

1.linux uses a multithreaded synchronization method 1) Mutex: When thread A locks mutex variables, thread B is suspended until thread A unlocks them.Note: Conditional variables can be used to increase efficiency when threads are constantly polling to check a condition to determine whether they can operate on data that needs to be s ...

Posted by hongco on Fri, 21 Jun 2019 09:38:21 -0700

Android Compiler SDL 2 and demo Display (2.0.5)

What is SDL (from Baidu Encyclopedia): SDL (Simple Direct Media Layer) is an open source cross-platform multimedia development library written in C language. SDL provides several functions to control the input and output of images, sounds, and so that developers can develop across multiple platforms (Linux, Windows, Mac) with the same or simil ...

Posted by mitwess on Thu, 20 Jun 2019 13:13:17 -0700

Automatic hot update of swoole framework for monitoring files under Linux

Swoole runs in cli and then resides in memory. The RINT process can only be executed once during the entire lifecycle at startup time, after which all requests are completed within the third step. (This is one of the reasons why swoole is faster.) In this way, if the relevant php script is executed once, it will permanently reside in memory an ...

Posted by Azala on Wed, 19 Jun 2019 14:36:33 -0700

Detailed explanation of LCD driver (2)

LCD driver source address of S2C2440 development board: linux-2.6.22.6/drivers/video/s3c2410fb.c The first thing to look at the driver source is, of course, the entry function. Here is the s3c2410fb_init function. int __devinit s3c2410fb_init(void) { //Register a Platform Driver Architecture s3c2410fb_driver return platform_driver_regist ...

Posted by guymclaren on Wed, 19 Jun 2019 12:10:39 -0700

Thread Control for Poosix of LInux

1. Thread Control Chart Main Thread<->|Work Queue|<->Work 1<->Work 2<->Work 3 Thread 1<-> | Work Queue |<->Work 1<->Work 2<->Work 3 Thread 2<->|Work Queue|<->Work 1<->Work 2<->Work 3 Thread 3<->|Work Queue|<->Work 1<->Work 2<->Work 3 Second ...

Posted by Ludo Lambrechts on Sun, 16 Jun 2019 10:04:56 -0700

pt-table-checksum checks master-slave database data

pt-table-checksum and pt-table-sync, the former is mainly used to verify the consistency of master and slave, and the latter is mainly used to repair data. The combination of the two can repair the problem of data inconsistency. 1. pt-table-checksum installation The latest address for downloading the toolkit is as follows: https://www.percona. ...

Posted by maxpagels on Sat, 15 Jun 2019 17:11:35 -0700

04.10 Disk Key Knowledge

Chapter 1 On-line Server Operational Specification Chapter 2 Mass Creation of User Cases 1. The first method sed The first method is: sed [root@Never-downtime ~]# echo stu{01..10}|xargs -n1|sed 's#.*#useradd &;echo 123456|passwd --stdin &#g' useradd stu01;echo 123456|passwd --stdin stu01 useradd stu02;echo 123456|passwd --stdin ...

Posted by zang8027 on Fri, 14 Jun 2019 21:26:34 -0700

nginx learning - - setting process title(setproctitle)

nginx learning - setting process title(setproctitle) Just saw the source code of nginx setting process title, so make some summaries. linux processes actually use the value at argv[0] as the title of the process, so if you need to modify the title of the process, you only need to modify the value at argv[0]. The simple way is to copy the ti ...

Posted by py343 on Fri, 14 Jun 2019 20:35:13 -0700