Chinaunix首页 | 论坛 | 博客

Go

  • 博客访问: 217264
  • 博文数量: 67
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 783
  • 用 户 组: 普通用户
  • 注册时间: 2013-10-12 16:29
文章分类

全部博文(67)

文章存档

2015年(1)

2014年(47)

2013年(19)

我的朋友

发布时间:2014-03-31 23:36:36

原创:kylin_zeng  原创kylin_zeng:http://blog.csdn.net/kylin_fire_zeng参考:http://wenku.baidu.com/view/3f829a20bcd126fff7050b0a.htmlhttp://hi.baidu.com/comcat/item/833ad9c75f4daf7688ad9e8e   反汇编faulty.ko( arm-linux-objdump -D faulty..........【阅读全文】

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

发布时间:2014-03-27 10:08:48

原创:blog.chinaunix.net/uid/23795897.html内核创建线程:struct task_struct * kthread_creat(int(*threadfn)(void *data),void *data,const char namefmt[],...)结束线程:int kthread_stop(struct task_struct *k)//调用此要确保线程已经退出,否则会一直等待。例如:static struct task_struct *simple_thread;i.........【阅读全文】

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

发布时间:2014-03-26 23:20:56

原创:http://blog.chinaunix.net/uid/23795897.html一、android编程,框架:建立一个工程后,有:1、src  -》MainActivity.java:这个是主要编程的地方,相当于main函数。   public class MainActivity extends Activity {    @Override    protected void onCreate(Bundle savedI.........【阅读全文】

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

发布时间:2014-03-21 10:06:17

原创:kylin_zeng http://blog.chinaunix.net/uid/23795897.html一、1、如果没有mmu,直接会使用物理地址,否则就会被mmu截获,因而使用虚拟地址。2、分配小于128Kb的内存:kmalloc和kfree. 线性连续的虚拟地址 且 物理地址是连续的。3、分配大块内存。get_zeroed_page,//返回单个的,零填充的页。4、__get_f.........【阅读全文】

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

发布时间:2014-03-20 18:35:04

原创:http://blog.chinaunix.net/uid/23795897.html一、锁机制:1、自旋锁:spinlock_t lock=SPIN_LOCK_UNLOCKED;spi_lock_init(&lock);spin_lock(&lock);spin_trylock(&lock);spin_unlock(&lock);spin_lock_irq();spin_lock_bh(&lock);//软件中断安全版本的自旋锁。2、读写锁:可以多个读,但是只能一个写,且.........【阅读全文】

阅读(739) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册