diff options
author | Stefan Fritsch <sf@cvs.openbsd.org> | 2017-05-19 08:31:44 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@cvs.openbsd.org> | 2017-05-19 08:31:44 +0000 |
commit | 4e1283ad42a08e2c1d9d58b38f90edfa46694ada (patch) | |
tree | dd1de120a60303d3adcfe369d99a36b87d64201f /sys/scsi | |
parent | c370c069afa08fafa244f1801498ce64a9bf5602 (diff) |
Add some comments about the assumptions of the scsi mid layer
ok krw@
Diffstat (limited to 'sys/scsi')
-rw-r--r-- | sys/scsi/scsiconf.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/scsi/scsiconf.h b/sys/scsi/scsiconf.h index 9ec913a55da..e90367a1852 100644 --- a/sys/scsi/scsiconf.h +++ b/sys/scsi/scsiconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.h,v 1.164 2016/03/10 13:56:14 krw Exp $ */ +/* $OpenBSD: scsiconf.h,v 1.165 2017/05/19 08:31:43 sf Exp $ */ /* $NetBSD: scsiconf.h,v 1.35 1997/04/02 02:29:38 mycroft Exp $ */ /* @@ -262,6 +262,12 @@ TAILQ_HEAD(scsi_runq, scsi_iohandler); struct scsi_iopool { /* access to the IOs */ void *iocookie; + /* + * Get an IO. This must reserve all resources that are necessary + * to send the transfer to the device. The resources must stay + * reserved during the lifetime of the IO, as the IO may be re-used + * without being io_put(), first. + */ void *(*io_get)(void *); void (*io_put)(void *, void *); @@ -297,7 +303,7 @@ struct scsi_link { u_int8_t luns; u_int16_t target; /* targ of this dev */ u_int16_t lun; /* lun of this dev */ - u_int16_t openings; /* available operations */ + u_int16_t openings; /* available operations per lun */ u_int64_t port_wwn; /* world wide name of port */ u_int64_t node_wwn; /* world wide name of node */ u_int16_t adapter_target; /* what are we on the scsi bus */ |