Use of completion quantity in linux 3.10
The completion quantity is designed based on the waiting queue, so it is obviously impossible to use the completion quantity in the interrupt context.
struct completion {
unsigned int done;
wait_queue_head_t wait;
};
Let's take a classic example of using completion quantity:
struct kthread_create_info
{
/* Information passed to k ...
Posted by jasraj on Sat, 04 Dec 2021 20:18:44 -0800
Debugging the kernel using Ftrace
preface
"Ftrace is a tracking tool built into the Linux kernel. Many Linux distributions have enabled various configurations of ftrace in the latest versions. One of the benefits of ftrace to Linux is that it can view what happens inside the kernel, better find the exact cause of the crash, and help developers create the right solution ...
Posted by Rhiknow on Sun, 21 Nov 2021 12:39:28 -0800
Linux device driver learning notes - character device driver - Note.1
Linux device driver learning notes - character device driver - Note.1
LINUX DEVICE DRIVERS,3RD EDITION
1, Character drive
[1] Primary and secondary equipment No
Character devices are accessed by names in the file system. Device files with names called file systems
Specify that they are located in the / dev directory. You can view thei ...
Posted by storyboo on Sun, 07 Nov 2021 18:38:23 -0800
Resistance screen and capacitance screen
1, Resistance screen
1. Principle of resistance screen
The resistance screen is based on Ohm's law. It has two layers of thin films. The thin film is the resistance.
When the upper and lower layers are in contact, the upper and lower films are in contact. At this time, the contact voltage can be measured.
X coordinate: when 3.3v voltage is ...
Posted by sneskid on Fri, 24 Sep 2021 19:33:43 -0700
Netfilter framework of Linux kernel
Netfilter framework of Linux kernel
Initial publication Nuggets
The author has done some research on Linux kernel related modules to realize kernel level communication encryption and video stream encryption, including Linux kernel network protocol stack, Linux kernel communication module, Linux kernel encryption module, secret key gen ...
Posted by groberts23 on Mon, 20 Sep 2021 23:15:11 -0700