
块设备驱动
文章平均质量分 84
Linux_Drv
本人对linux内核驱动有浓厚的兴趣,欢迎大家加我qq
展开
-
块设备驱动1--自编ramdisk(在linux-3.2.36上的新接口)
这是块设备驱动的第一期,我们就从ldd3的sbull开始吧,但是ldd3用的linux版本太老了,你直接用它的例子在linux-3.2.x上是很麻烦的。我主要做的就是在高版本上的移植。里面有个NOQUEUE宏,可以选择不用一个请求队列 。自己对着ldd3中的讲解看看吧/*********************************** Copyright(C), 2013原创 2013-10-26 15:00:21 · 1491 阅读 · 0 评论 -
块设备驱动2--sd卡驱动1(linux-3.2.36的sdchi.h分析)
我的经历:看了某些大神的说明,我胆怯地进入了drivers/mmc/host/,看过我之前的文章知道我用的是s3c2440。看驱动时,我首先会找s3c字样,于是我注意到sdhci-s3c.c和s3cmci.c。看了一下Kconfigconfig MMC_S3C tristate "Samsung S3C SD/MMC Card Interface support"原创 2013-10-31 13:11:46 · 5219 阅读 · 1 评论 -
块设备驱动3--sd卡驱动2(linux-3.2.36的host.h分析)
/* * linux/include/linux/mmc/host.h * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by th原创 2013-12-31 16:26:27 · 3211 阅读 · 0 评论