自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(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 177

原创 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 220

原创 timer/thread/wait_queue例子

本文简单介绍linux kernel编程中,timer、thread、wait_queue的基本用法。代码简单,用法明了,用于帮助新手入门。

2021-03-19 13:44:31 129

原创 2020-11-20点滴

荷花定律(Lotus's law) 一个哲学定律,意思是成功需要厚积薄发,需要积累沉淀,这也是复利的力量。一个荷花池,第一天荷花开放的很少,第二天开放的数量是第一天的两倍,之后的每一天,荷花都以前一天两倍的数量开放。...

2020-11-20 17:29:31 107

原创 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 668

原创 匿名管道(Pipe)和命名管道(FIFO)

catalogue1. pipe匿名管道2. named pipe(FIFO)有名管道1. pipe匿名管道管道是Linux中很重要的一种通信方式,是把一个程序的输出直接连接到另一个程序的输入,常说的管道多是指无名管道,无名管道只能用于具有亲缘关系的进程之间,这是它与有名管道的最大区别。管道是Linux支持的最初Unix IPC形式之一,具有以下特点1. 管道是半双工的,数据只能向一个方向流动; 需要双方通信时,需要建立起两个管道 2. 只能用于父子进程或者兄弟进程之间(具有.

2020-06-02 09:47:15 1852

原创 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 274

原创 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 2829 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 454

原创 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 344

高质量C和C++语言编程指南

高质量C和C++语言编程指南,全面详细介绍了软件编程的思想

2010-03-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除