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
F174294648: D30853.id91187.diff
Fri, Oct 2, 3:14 AM
Unknown Object (File)
Mon, Sep 28, 8:55 AM
Unknown Object (File)
Sun, Sep 20, 7:50 PM
Unknown Object (File)
Sun, Sep 13, 9:43 PM
Unknown Object (File)
Fri, Sep 11, 3:23 AM
Unknown Object (File)
Fri, Sep 11, 3:23 AM
Unknown Object (File)
Wed, Sep 9, 3:54 AM
Unknown Object (File)
Tue, Sep 8, 3:12 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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().