如何从中读取扇区并以编程方式禁用CD-ROM缓存? [英] How to read sectors from medium and disable CD-ROM caching programmatically?

查看:98
本文介绍了如何从中读取扇区并以编程方式禁用CD-ROM缓存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于某些目的,我希望CD-ROM驱动器始终从介质(光盘)读取扇区,而不是从缓存(易失性或非易失性)中检索它们。我知道我应该使用缓存模式页面(08h)。

发送其他SCSI命令,如28h(READ CD)或BBh(SET CD SPEED)很简单但我不知道如何发送模式选择缓存模式页面选项或结构,我不确切知道。



我搜索了这么多,但一无所获。所以请给我一个详细的C ++代码来禁用CD-ROM缓存或一些代码从中读取扇区。



谢谢

解决方案

For some purposes I want CD-ROM drive always read sectors from medium (disc) not retrieve them from cache (volatile or non-volatile). I know I should use Caching Mode Page (08h).
Sending other SCSI command such as 28h (READ CD) or BBh (SET CD SPEED) was fine and easy but I have no idea how to send Mode Select with caching mode page option or structure, I don't know exactly.

I've searched this so much but found nothing. So please give me a detailed C++ code to disable CD-ROM caching or some code to read sectors from medium.

Thanks

解决方案

这篇关于如何从中读取扇区并以编程方式禁用CD-ROM缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆