基于内存页的Linux块设备驱动在S3C6410平台上的开发和移植
he Development and Transplantation of Linux Block Device Driver in S3C6410 platform based on Pages Mechanism
本文首先简要介绍了Linux下块设备驱动的结构体系和基本概念,进而深入阐述了分别在内核态和用户态对其进行访问的实现方式。最后,在详细探讨了Linux块设备驱动开发的基础上,针对Linux-2.6.36版本,编写了一个基于内存页机制的Ramdisk块设备驱动,并将其成功移植到基于S3C6410平台的Tiny6410开发板上,成功克服了基于vmalloc等内存分配方式中不能构建大内存Ramdisk设备的缺点。测试结果显示:可以像普通磁盘等其他块设备一样对该Ramdisk设备进行操作,达到了很好的预期效果。
his paper firstly introduces the structural system and basic concept of the Linux block device drivers, and then further expounds the implementation of visit it by kernel mode and user mode respectively, and finally discusses the development of the Linux block device driver, based on Linux-2.6.36 version and pages mechanism, write a Ramdisk device driver and successfully transplanted it to the Tiny6410 development board based on the S3C6410 platform, which has overcome the disadvantage of building just small ramdisk device by ways of memory allocation such as vmalloc. The test results show that it can be operated like other block device just as ordinary disk and achieves a good expected result.
叶晓通、高元楼、叶晓军
计算技术、计算机技术电子电路
操作系统Linux-2.6.36块设备驱动RamdiskS3C6410
operation systemLinux-2.6.36block device driverramdiskS3C6410
叶晓通,高元楼,叶晓军.基于内存页的Linux块设备驱动在S3C6410平台上的开发和移植[EB/OL].(2011-07-04)[2025-08-02].http://www.paper.edu.cn/releasepaper/content/201107-24.点此复制
评论