- 博客(4)
- 收藏
- 关注
原创 循环
#!/bin/bash list=`seq 1 10` for node in $list do 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
180
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
245
原创 内核态程序hello world
#include #include static 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
293
原创 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
1231
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人