在 Mac OS X 中向 SCSI 设备发送特定的 SCSI 命令
是否可以对 SCSI 驱动程序执行一些查询请求?
Is it possible to do some Inquiry requests to SCSI driver?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
是否可以对 SCSI 驱动程序执行一些查询请求?
Is it possible to do some Inquiry requests to SCSI driver?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
不,从用户态是不可能的。
从这里
http://developer.apple.com/library/mac/#documentation/DeviceDrivers/Conceptual/WorkingWithSAM/WWS_SAMDevInt/WWS_SAM_DevInt.html
No it is not possible from userland.
From here
http://developer.apple.com/library/mac/#documentation/DeviceDrivers/Conceptual/WorkingWithSAM/WWS_SAMDevInt/WWS_SAM_DevInt.html
接受的答案并不完全正确。
如果设备不是块磁盘设备,而是磁带驱动器,因此默认情况下不由 macOS 驱动程序驱动,则可以使用
,来自用户态应用程序。请参阅 Apple 的 SCSI文档。The accepted answer is not entirely correct.
If the device is not a block disk device but, for instance, a tape drive, and therefore is not driven by a macOS driver by default, then one can talk to it using the functions available in
<IOKit/scsi/SCSITaskLib.h>
, from a userland application. See the "SCSITaskDeviceInterface" section in Apple's SCSI docs.