git: c73436000a48 - main - unix/stream: rename uipc_wakeup() to uipc_wakeup_writer()

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Tue, 10 Jun 2025 06:06:07 UTC
The branch main has been updated by glebius:

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

commit c73436000a48ef573a76d1049a74d41004b592a8
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2025-06-10 05:10:44 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2025-06-10 06:05:07 +0000

    unix/stream: rename uipc_wakeup() to uipc_wakeup_writer()
    
    Also remove reference to sowakeup(), it may cause more confustion than
    help.  No functional change.
---
 sys/kern/uipc_usrreq.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index 95d857b2625d..c176119382fa 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -1304,7 +1304,7 @@ out:
 }
 
 /*
- * Our version of sowakeup(), used by recv(2) and shutdown(2).
+ * Wakeup a writer, used by recv(2) and shutdown(2).
  *
  * @param so	Points to a connected stream socket with receive buffer locked
  *
@@ -1314,7 +1314,7 @@ out:
  * receive lock is protecting us from the peer going away.
  */
 static void
-uipc_wakeup(struct socket *so)
+uipc_wakeup_writer(struct socket *so)
 {
 	struct sockbuf *sb = &so->so_rcv;
 	struct selinfo *sel;
@@ -1347,7 +1347,7 @@ uipc_cantrcvmore(struct socket *so)
 	SOCK_RECVBUF_LOCK(so);
 	so->so_rcv.sb_state |= SBS_CANTRCVMORE;
 	if (so->so_rcv.uxst_peer != NULL)
-		uipc_wakeup(so);
+		uipc_wakeup_writer(so);
 	else
 		SOCK_RECVBUF_UNLOCK(so);
 }
@@ -1503,7 +1503,7 @@ restart:
 			if ((aio = sb->uxst_flags & UXST_PEER_AIO))
 				sb->uxst_flags &= ~UXST_PEER_AIO;
 
-			uipc_wakeup(so);
+			uipc_wakeup_writer(so);
 			/*
 			 * XXXGL: need to go through uipc_lock_peer() after
 			 * the receive buffer lock dropped, it was protecting