HomeFreeBSD

cam: add xpt_path_sim_device to return device_t associated with a path

Description

cam: add xpt_path_sim_device to return device_t associated with a path

Return the device associated with the sim's bus when it called
xpt_bus_register, if any. Most real SIMs in the tree set this device,
but some virtual ones do not have a device_t assocaited with them.

Reviewed by: scottl@, mav@ (earlier version)
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D30853

Details

Provenance
impAuthored on Jun 28 2021, 9:57 PM
Differential Revision
D30853: cam: add xpt_path_device to return device_t associated with a path
Parents
rG9f1e411ae8cf: cam: Group all xpt_path*() functions together in cam_xpt.h
Branches
Unknown
Tags
Unknown