Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1204282
  • 博文数量: 185
  • 博客积分: 495
  • 博客等级: 下士
  • 技术积分: 1418
  • 用 户 组: 普通用户
  • 注册时间: 2012-09-02 15:12
个人简介

治肾虚不含糖,专注内核性能优化二十年。 https://github.com/KnightKu

文章分类

全部博文(185)

文章存档

2019年(1)

2018年(12)

2017年(5)

2016年(23)

2015年(1)

2014年(22)

2013年(82)

2012年(39)

发布时间:2013-05-13 14:37:21

前几天写的一个demo,没几行代码,但是涵盖的东西比较多:撰写模块,创建内核线程,节点及cpu亲缘性设置,内核态获取时间,内核态分配大内存,时间处理等等...已备后用。点击(此处)折叠或打开#include <linux/module.h>#include <linux/init.h>#include <linux.........【阅读全文】

阅读(1317) | 评论(0) | 转发(0)

发布时间:2013-05-09 11:52:41

......【阅读全文】

阅读(766) | 评论(0) | 转发(0)

发布时间:2013-05-08 16:34:22

创建内核线程比较常用的接口有:kthread_create, kthread_run,这是kernel.h里面的两个宏,原型如下:#define kthread_create(threadfn, data, namefmt, arg...) \    kthread_create_on_node(threadfn, data, -1, namefmt, ##arg)参数有四个:threadfn---创建的线程需要执行的任务函数,类型是 int (*th.........【阅读全文】

阅读(3914) | 评论(0) | 转发(0)

发布时间:2013-05-07 13:54:59

编译libconhash的时候出现了一些类型问题的警告:conhash_util.c: In function ‘conhash_get_vnodes’:conhash_util.c:31:2: warning: passing argument 1 of ‘util_rbtree_mid_travel’ discards ‘const’ qualifier from pointer target type [enabled by default]util_rbtree.h:112:6: note: expected ‘struct u.........【阅读全文】

阅读(4069) | 评论(0) | 转发(0)

发布时间:2013-04-23 11:33:23

如果你要查看文件的每个部分是谁修改的, 那么 git blame 就是不二选择. 只要运行'git blame [filename]', 你就会得到整个文件的每一行的详细修改信息:包括commit SHA串,日期和作者:[root@guz linux-2.6]# git blame kernel/cgroup.c ddbcc7e8 (Paul Menage         .........【阅读全文】

阅读(1556) | 评论(0) | 转发(0)
给主人留下些什么吧!~~

登高望远海2013-09-16 22:09

你乃博客狂人。。。。。。。。。

回复  |  举报
留言热议
请登录后留言。

登录 注册