diff options
author | scottl <scottl@FreeBSD.org> | 2016-04-16 02:47:46 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2016-04-16 02:47:46 +0000 |
commit | 2732738c9f325115b53493f83466802db511ace4 (patch) | |
tree | 992f82d82b8227b5a1104511feeffd89645a498f /sys/cam/scsi/scsi_all.h | |
parent | 8113adf5471bb2702e002c680098d6053fbf39d2 (diff) | |
download | FreeBSD-src-2732738c9f325115b53493f83466802db511ace4.zip FreeBSD-src-2732738c9f325115b53493f83466802db511ace4.tar.gz |
MFC r297925, r297926:
Add scsi_cdb_sbuf() for handling CDB strings. Reimplement scsi_cdb_string()
in terms of it.
Use scsi_cdb_sbuf() inside of scsi_command_string now that the temporary
string storage is no longer needed.
Sponsored by: Netflix
Diffstat (limited to 'sys/cam/scsi/scsi_all.h')
-rw-r--r-- | sys/cam/scsi/scsi_all.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_all.h b/sys/cam/scsi/scsi_all.h index f2b4b21..615a42a 100644 --- a/sys/cam/scsi/scsi_all.h +++ b/sys/cam/scsi/scsi_all.h @@ -3644,6 +3644,7 @@ const char * scsi_op_desc(u_int16_t opcode, struct scsi_inquiry_data *inq_data); char * scsi_cdb_string(u_int8_t *cdb_ptr, char *cdb_string, size_t len); +void scsi_cdb_sbuf(u_int8_t *cdb_ptr, struct sbuf *sb); void scsi_print_inquiry(struct scsi_inquiry_data *inq_data); void scsi_print_inquiry_short(struct scsi_inquiry_data *inq_data); |