Page MenuHomeFreeBSD

cam/xpt: improve comment on xpt_path_inq
ClosedPublic

Authored by imp on Jul 5 2025, 6:15 PM.
Tags
None
Referenced Files
F132646482: D51166.id158132.diff
Sat, Oct 18, 5:38 PM
F132578785: D51166.id158132.diff
Sat, Oct 18, 3:25 AM
Unknown Object (File)
Tue, Oct 14, 2:05 AM
Unknown Object (File)
Mon, Oct 13, 12:33 PM
Unknown Object (File)
Mon, Oct 13, 12:33 PM
Unknown Object (File)
Sun, Oct 12, 11:58 PM
Unknown Object (File)
Tue, Sep 23, 4:53 PM
Unknown Object (File)
Sep 15 2025, 7:47 PM
Subscribers
None

Details

Summary

Fix a comment about bzero maybe unnecessary. It can sometimes be
redunant, but a common usage pattern puts the ccb_pathinq structure on
the stack since it's small and for that scenario, it's required. It's
reundant for the few places the ccb is allocated, and in those cases it
does no harm.

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.Jul 5 2025, 6:15 PM
jhb added inline comments.
sys/cam/cam_xpt.h
149

I would maybe just drop the last sentence as I think the comment about (dynamically) allocated vs on-stack is sufficient.

This revision is now accepted and ready to land.Jul 7 2025, 5:00 PM
sys/cam/cam_xpt.h
149

Sure. That makes sense... I tend to over do it in CAM comments because the code isn't always the most straight forward in spots.

This revision was automatically updated to reflect the committed changes.