- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 create a .pem file for SSL Certificate
Privacy Enhanced Mail (PEM)files are concatenated certificate containers frequently used in certificate installations when multiple certificates that form a complete chain are being imported as a single file. They are a defined standard in RFCs1421throu...
2021-04-29 18:27:05 192
原创 linux 中断示例
#include <linux/module.h>#include <linux/interrupt.h>static int irq;static char *devname;module_param(irq, int, 0644);module_param(devname, charp, 0644);struct myirq{ int devid;};struct myirq mydev = {1119};//irq handler fun.
2021-04-29 16:58:17 251
原创 timer/thread/wait_queue例子
本文简单介绍linux kernel编程中,timer、thread、wait_queue的基本用法。代码简单,用法明了,用于帮助新手入门。
2021-03-19 13:44:31 140
原创 2020-11-20点滴
荷花定律(Lotus's law) 一个哲学定律,意思是成功需要厚积薄发,需要积累沉淀,这也是复利的力量。一个荷花池,第一天荷花开放的很少,第二天开放的数量是第一天的两倍,之后的每一天,荷花都以前一天两倍的数量开放。...
2020-11-20 17:29:31 121
原创 set-user-ID
You might know the normal read, write and execute permissions for files in unix.However, in many applications, this type of permission structure--e.g. giving a given user either full permission to read a given file, or no permission at all to read the fi
2020-06-03 11:26:42 687
原创 匿名管道(Pipe)和命名管道(FIFO)
catalogue1. pipe匿名管道2. named pipe(FIFO)有名管道1. pipe匿名管道管道是Linux中很重要的一种通信方式,是把一个程序的输出直接连接到另一个程序的输入,常说的管道多是指无名管道,无名管道只能用于具有亲缘关系的进程之间,这是它与有名管道的最大区别。管道是Linux支持的最初Unix IPC形式之一,具有以下特点1. 管道是半双工的,数据只能向一个方向流动; 需要双方通信时,需要建立起两个管道 2. 只能用于父子进程或者兄弟进程之间(具有.
2020-06-02 09:47:15 1934
原创 pgp (GnuPG) encryption/decryption
GNU Privacy Guard(GnuPG或GPG)是一個密碼學軟體,用於加密、簽章通信內容及管理非對稱密碼學的金鑰GNU Privacy Guard is a complete and free implementation of the OpenPGP Standard as definedRFC4880(also known as GPG).//generate pub/pri...
2020-03-18 12:15:46 295
原创 Android P, failed to mount /vendor, /dev/block/dm-5 is read only
I tried to mount -o remount,rw /vendor on android P with user-debug build, and I got the feedback 'failed to mount /vendor, /dev/block/dm-5 is read only'.I searched and it looks like dm-verity is in...
2020-03-03 17:11:10 2936 2
翻译 Singly-linked tail queues
A singly-linked tail queue is headed by a structure defined by the STAILQ_HEAD macro. This structure contains a pair of pointers, one to the first element in the tail queue and the other to the last e...
2019-11-28 16:59:02 471
原创 linux dd用法
dd - convert and copy a file.example.dd if=inputfile of=outputfile bs=1 [skip=] [seek=] >& /dev/nullvim 16进制显示:vi test.bin:%!xxd取消16进制显示::%!xxd -r/dev/null含义:或称空设备,它丢弃一...
2019-11-26 15:37:37 362
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人