/
githubmirror
/
sg3_utils
Обзор
Документация
Войти
/
githubmirror
/
sg3_utils
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
inhex/stream_ctl_open.hex
17 строк
712 B
Douglas Gilbert
sg_stream_ctl: add --hex, --inhex=, --json= and --raw options; JSON: make output more consistent so most command responses have a *_paramter_data
21 окт 2023, 04:55
21 окт 2023, 04:55
0e955c4
Код
Авторство
О чём код?
# # The SCSI STREAM CONTROL command yields parameter data which in the # case of STR_CTL=1 (open) contains the newly opened Stream Identifier # ASSIGNED_STR_ID. That field is 16 bits long and should not be 0. # In the case of STR_CTL=2 (close) it seems 8 bytes of parameter data # is also returned with the value of ASSIGNED_STR_ID is "reserved". # In practice that should be zero. # # This can be tested with: # sg_stream_ctl --open --inhex=<this_file> # and the ASSIGNED_STR_ID field should be 3 . # Note the the '--open' option is needed to flag that the response data # is from a SCSI STREAM CONTROL command. # # For a GET STREAM STATUS command example see the stream_ctl_get.hex file . 7 0 0 0 0 3 0 0