block driver
Hacker_Albert
If I am not for myself, who will be for me?
If I am only for myself, what am I?
If not now, when?
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
linux block framework(3) - ramdisk driver
案例ramdisk 源码 #include <linux/module.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/fs.h> #include <linux/types.h> #include <linux/fcntl.h> ...原创 2019-12-29 21:27:39 · 274 阅读 · 0 评论 -
linux block framework(2) - block driver
了解linux block driver 1.Block Registration Block drivers, like char drivers, must use a set of registration interfaces to make their devices available to the kernel. The concepts are similar, but t...原创 2019-12-29 18:24:49 · 496 阅读 · 0 评论 -
linux block framework(1) - 块设备概念
了解linux block 基本概念 1.概念 块设备是I/O设备中的一类,当应用层对该设备读写时,是按扇区大小来读写数据的,若读写的数据小于扇区的大小,就会需要缓存区, 可以随机读写设备的任意位置处的数据,例如 普通文件(.txt,.c等),硬盘,U盘,SD卡。 块设备是一种具有一定结构的随机存取设备,对这种设备的读写是按块进行的,它使用缓冲区来存放暂时的数据,待条件成熟后,从缓存一...原创 2019-12-29 16:56:21 · 689 阅读 · 0 评论
分享