Page MenuHomeFreeBSD

cam: add xpt_path_device to return device_t associated with a path
ClosedPublic

Authored by imp on Jun 21 2021, 7:01 PM.
Tags
None
Referenced Files
F157767331: D30853.id91468.diff
Sun, May 24, 11:40 PM
F157766659: D30853.id91468.diff
Sun, May 24, 11:31 PM
Unknown Object (File)
Tue, May 19, 10:28 AM
Unknown Object (File)
Tue, May 19, 10:21 AM
Unknown Object (File)
Mon, May 18, 12:13 PM
Unknown Object (File)
Mon, May 18, 12:06 PM
Unknown Object (File)
Mon, May 18, 8:14 AM
Unknown Object (File)
Fri, May 15, 3:48 AM
Subscribers
None

Details

Summary

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.

Sponsored by: Netflix

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40030
Build 36919: arc lint + arc unit

Event Timeline

imp requested review of this revision.Jun 21 2021, 7:01 PM
This revision is now accepted and ready to land.Jun 23 2021, 6:45 PM

I've just thought that struct cam_path has own device field. So the function name is confusing.

In D30853#694698, @mav wrote:

I've just thought that struct cam_path has own device field. So the function name is confusing.

I'll change to xpt_path_sim_device().