Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Mar 2026 22:30:07 +0000
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: a8b15315b250 - main - cam: Add comment about routine
Message-ID:  <69b1ecef.19352.14bef906@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=a8b15315b250b067f16d629664caf6358d468bff

commit a8b15315b250b067f16d629664caf6358d468bff
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2026-03-11 22:29:17 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2026-03-11 22:29:49 +0000

    cam: Add comment about routine
    
    Explain why we bump ref counts here.
    
    Sponsored by:           Netflix
---
 sys/cam/cam_xpt.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c
index 8b42fb2ca6c5..f43dde8de401 100644
--- a/sys/cam/cam_xpt.c
+++ b/sys/cam/cam_xpt.c
@@ -1027,6 +1027,10 @@ xpt_add_periph(struct cam_periph *periph)
 	return (status);
 }
 
+/*
+ * Remove this peripheral from the list of peripherals the devices maintains.
+ * Bump generation numbers to note topology changes.
+ */
 void
 xpt_remove_periph(struct cam_periph *periph)
 {


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69b1ecef.19352.14bef906>