git: a8b15315b250 - main - cam: Add comment about routine

From: Warner Losh <imp_at_FreeBSD.org>
Date: Wed, 11 Mar 2026 22:30:07 UTC
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)
 {