Chinaunix首页 | 论坛 | 博客
  • 博客访问: 229238
  • 博文数量: 77
  • 博客积分: 80
  • 博客等级: 民兵
  • 技术积分: 420
  • 用 户 组: 普通用户
  • 注册时间: 2012-01-06 17:15
文章分类
文章存档

2013年(4)

2012年(73)

发布时间:2013-03-14 23:52:54

一、开发环境主  机:VMWare--Fedora 9 开发板:Mini2440--64MB Nand, Kernel:2.6.30.4 编译器:arm-linux-gcc-4.3.2二、相关概念1、平台设备:通常在Linux中,把SoC系统中集成的独立外设单元(如:I2C、IIS、RTC、看门狗等)都被当作.........【阅读全文】

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

发布时间:2013-02-15 11:38:37

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

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

发布时间:2013-01-03 10:31:32

1、软中断由内核线程ksoftirqd处理,下面说一下它的创建过程。start_kernel()创建init线程,init()调用do_pre_smp_initcalls()->spawn_ksoftirqd(),spawn_ksoftirqd()分两次调用cpu_callback(),分别使用参数CPU_UP_PREPARE和CPU_ONLINE。使用CPU_UP_PREPARE调用cpu_callback()时,创建了ksoftirqd线程,并把task_struct指针存于per_cpu变量per_cpu(ksoftirqd, hotcpu)中;使用CPU_ONLINE调......【阅读全文】

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

发布时间:2012-12-17 18:34:18

  本文所说的Inode是struct inode结构体,并不是在inode块中的inode结点。   Char Device Driver   相关数据结构: struct cdev {   struct kobject kobj;   struct module *owner;   const struct file_operations *ops;   struct list_head list;   dev_t dev;   unsigned int count; };   struct kobj_map {   ......【阅读全文】

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

发布时间:2012-12-17 15:45:08

        GNU C的一大特色(却不被初学者所知)就是__attribute__机制。__attribute__是用来设置函数属性(Function Attribute)、变量属性(Variable Attribute)和类型属性(Type Attribute)。__attribute__书写特征是:__attribute__前后都有两个下划线,并切后面会紧跟一对原括弧,括弧里面是相应的__attribute__参数。__attribute__语法格式为:__attribute__ ((attribute-......【阅读全文】

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

登录 注册