6.18. 主机状态 (host_status)

这些代码可能来自主机适配器上的固件,或者来自适配器驱动程序控制的多个主机之一。“主机状态 (host_status)”字段具有以下值,其 #define 模仿内核中可见的值(从每个 define 的前面删除了 “SG_ERR_”)。这些 define 的副本可以在 sg_err.h 中找到(参见 附录 A

主机状态 (host_status) 的类型是 unsigned short 。(The type of host_status is unsigned short .)

注释 (Notes)

[1]

在某些情况下,当 sym53cxx 驱动程序在内部将奇数传输长度向上舍入 1 时,它会报告 DID_ERROR。这是一个“非错误”的示例。(In some cases the sym53cxx driver reports a DID_ERROR when it internally rounds up an odd transfer length by 1. This is an example of a "non-error".)