基于MTK 6595分析,内核版本3.10.5
1 Printk函数分析
内核为Printk维护一个环形缓冲区,其大小为:
#define __LOG_BUF_LEN (1
大小可以通过CONFIG_LOG_BUF_SHIFT去控制
1.1函数原型如下:
asmlinkage int printk(const char *fmt, ...)
{
va_list...
分类:
系统相关 时间:
2014-12-13 16:34:31
阅读次数:
1635
分析了这两种用法,真想吐槽两句,这两个特性确实有实际需要,但客观来说,现有标准足够用,而且带来的代价也非常大,又给C++复杂的语法糖重重的抹了一笔!!!
一、继承构造函数
继承构造函数的引入原因:如果基类的构造函数很多,那么子类的构造函数想要实现同样多的构造接口,必须一一调用基类的构造函数,有点麻烦
于是乎:C++11引入继承构造函数
class _A
{
public:
...
分类:
编程语言 时间:
2014-12-11 22:24:39
阅读次数:
246
/*
*Author : DavidLin
*Date : 2014-12-10pm
*Email : linpeng1577@163.com or linpeng1577@gmail.com
*world : the city of SZ, in China
*Ver : 000.000.001
*h...
分类:
系统相关 时间:
2014-12-11 00:17:55
阅读次数:
277
方法1、散点图hscat(log(zinc)~1, meuse, (0:9)*100)方法2、变异函数云图library(gstat)cld <- variogram(log(zinc) ~ 1, meuse, cloud = TRUE)svgm <- variogram(log(zinc) ~ 1...
分类:
编程语言 时间:
2014-11-26 16:26:09
阅读次数:
355
/*
* up_wp_page()函数用于解除物理页的共享状态,同时给发生写时复制的进程提供一页新的
* 物理页,新物理页是之前共享页的数据相同的拷贝。
* table_entry是共享物理页的地址的指针,即页表实际地址+表内偏移地址
*/
void un_wp_page(unsigned long * table_entry)
{
unsigned long old_page,new_...
分类:
系统相关 时间:
2014-11-26 11:29:37
阅读次数:
325
/*
*Author : DavidLin
*Date : 2014-11-22pm
*Email : linpeng1577@163.com or linpeng1577@gmail.com
*world : the city of SZ, in China
*Ver : 000.000.001
*history :...
分类:
系统相关 时间:
2014-11-24 20:54:08
阅读次数:
237
/*
*Author : DavidLin
*Date : 2014-11-22pm
*Email : linpeng1577@163.com or linpeng1577@gmail.com
*world : the city of SZ, in China
*Ver : 000.000.001
*history : editor...
分类:
系统相关 时间:
2014-11-24 11:53:07
阅读次数:
251
一、fastHessianDetector函数分析
(1)参数
const Mat& sum 积分图片
const Mat& mask_sum
vector& keypoints 关键点
int nOctaves 金字塔的阶数
int nOctaveLayers 每阶金字塔的中间层数
floa...
分类:
其他好文 时间:
2014-11-20 15:29:29
阅读次数:
362
/*
*Author : DavidLin
*Date : 2014-11-11pm
*Email : linpeng1577@163.com or linpeng1577@gmail.com
*world : the city of SZ, in China
*Ver : 000.000.001
*history : editor...
分类:
系统相关 时间:
2014-11-11 21:08:37
阅读次数:
294
swoole版本:1.7.6-stable
上一章已经分析了如何启动swServer的相关函数。本章将继续分析swServer的相关函数,
1.swServer函数分析
swServer_addListener
该函数用于在swServer中添加一个需要监听的host及port。函数原型如下:
// Server.h 438h
int swServer_addLi...
分类:
其他好文 时间:
2014-10-29 00:30:03
阅读次数:
388