- 博客(4)
- 收藏
- 关注
原创 循环
#!/bin/bashlist=`seq 1 10`for node in $listdo list_inside=`seq 1 10` for node_inside in $list_inside do echo "$node * $node_inside = $(($node*$node_in
2016-05-09 22:54:28
237
1
原创 sysfs文件使用
#include #include #include #include #include static int sysfs_value;static ssize_t sysfs_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf){ return sprintf(buf, "%d\n", sysfs
2016-03-07 00:22:25
325
原创 内核态程序hello world
#include#includestatic int __init hello_init(void){ printk(KERN_WARNING "hello world.\n"); return 0;}static void __exit hello_exit(void) //清除函数{ printk(KERN_WARNING "goodbye c
2016-03-06 23:33:33
348
原创 ubuntu环境下搭建kgdb调试环境
概要:使用kgdb阅读内核代码是一个很不错的选择。本文主要描述在ubuntu下搭建kgdb环境的过程。(一)使用环境虚拟机 Workstation 10.0(二)编译内核1、下载最新linux内核源码。地址 http://www.kernel.org/;我下载的是 linux-3.13.6的版本,其他版本方法类似2、解压下载的源码。源码放在哪个目录都能编,为
2014-03-23 14:51:14
1417
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅