HomeFreeBSD

ctl: Add CTL_IO_ASSERT wrapper macro

Description

ctl: Add CTL_IO_ASSERT wrapper macro

Currently, this pattern is commonly used to assert that a union ctl_io
is a SCSI request. In the future it will be used to assert other
types.

Suggested by: imp
Reviewed by: imp
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D44844

(cherry picked from commit ac7a514e20f394ffed0126c0c356aa9107821880)

Details

Provenance
jhbAuthored on May 2 2024, 11:30 PM
Reviewer
imp
Differential Revision
D44844: ctl: Add CTL_IO_ASSERT wrapper macro
Parents
rG2d8562860eca: ctl: Avoid an upcast for calling ctl_scsi_path_string
Branches
Unknown
Tags
Unknown