- 博客(10)
- 资源 (7)
- 收藏
- 关注
原创 双向循环链表设计分析之五
#include #include #include typedef unsigned char D_U8; typedef unsigned short D_U16; typedef unsigned int D_U32; typedef struct _D_List D_List; struct _D_List{ D_List *prev; D_List *next; }
2015-02-09 19:39:34 500
原创 双向循环链表设计分析之四
#include #include #include typedef unsigned char D_U8; typedef unsigned short D_U16; typedef unsigned int D_U32; typedef struct _D_List D_List; struct _D_List{ D_List *prev; D_List *next; }
2015-02-09 19:23:14 548
原创 双向循环链表分析设计之三
#include #include #include typedef char D_Char; typedef int D_Int; typedef struct _D_List D_List; struct _D_List { D_List *prev; D_List *next; }; typedef struct { D_List list; D_Char name
2015-02-09 19:00:30 682
原创 双向循环链表设计分析之二
#include #include #include typedef char D_Char; typedef int D_Int; typedef struct _D_List D_List; struct _D_List { D_List *prev; D_List *next; }; typedef struct { D_List list; D_Char name
2015-02-09 18:46:54 544
原创 双向循环链表设计分析之一
#include #include #include typedef char D_Char; typedef int D_Int; typedef struct _D_List D_List; struct _D_List { D_List *prev; D_List *next; }; typedef struct { D_List list; D_Char name
2015-02-09 18:41:29 473
原创 Linux内核双向循环链表分析
#include struct list_head { struct list_head *next; struct list_head *prev; }; struct score { int num; int math; struct list_head list; }; #define list_for_each(pos, head) \ for (pos = (he
2015-02-09 13:34:18 712
原创 Nand Flash驱动程序分析
/*Nand Flash驱动分析*/ /*首先: 市面上的开发板很多,Nand Flash差不多都一样。先说说Nand Flash的特性*/ /* 上图是OK6410开发板的Nand Flash原理图,从上图可知: 1. 数据线和地址线明显是公用的。因为只看见了DATA0-DATA7没看见地址线。作为一个存储芯片当然要写数据,读数据。当然需要地址线。 2. DATA0-DATA7在好多地址被
2015-02-05 19:43:07 846
原创 内存模拟块设备驱动程序设计
/*既然上面分析了,块设备的工作原理。 那如何写一个块设备呢?*/ /*怎么写一个块设备驱动程序? * 1. 分配一个gendisk结构,用alloc_disk函数 * 2. 分配一个request队列,用blk_init_queue函数 * 3. 设置gendisk结构 * 3.1 设置主设备号,次设备号 * 3.2 设置block_device_operations结构 * 3.3 设置qu
2015-02-04 11:43:02 891
原创 块设备工作原理分析
/*分析 块设备的工作原理*/ void ll_rw_block(int rw, int nr, struct buffer_head *bhs[]) { int i; for (i = 0; i < nr; i++) { struct buffer_head *bh = bhs[i]; if (!trylock_buffer(bh)) continue; //写操作
2015-02-03 19:31:57 900
原创 字符设备与块设备的区别
块设备:系统中可以随机访问(不按顺序访问)数据,这种设备称为块设备。比如我们常用的磁盘就是一种典型的块设备。 字符设备: 系统中按字符流的方式有序的访问数据,这种设备称为字符设备。比如我们常用的键盘。 为什么说磁盘是一种典型的块设备呢? 假如磁盘是按字符设备的方式访问数据, 那就是说磁盘是按顺序访问数据的。 如果读取数据时一个数据在1扇区,另一个数据在20扇区。那么
2015-02-02 22:38:12 2276
ARMGIC手册详解.zip
2020-03-21
ARM_v8_architecture参考手册.zip
2020-03-21
ARMv8-A_Architecture.zip
2020-03-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人