Skip to contentSkip to conversation

net: stream: add description for sk_stream_write_space()

PATCH Applied Suchit Karunakaran 2 participants 2 messages Jul 16, 2025 – Jul 19, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: stream: add description for sk_stream_write_space()

Add a proper description for the sk_stream_write_space() function as previously marked by a FIXME comment.
No functional changes.

---
 net/core/stream.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
net/core/stream.c +6 -2
index b16dfa568a2d..7a37e7dd2c43 100644
@@ -23,9 +23,13 @@
 
 /**
  * sk_stream_write_space - stream socket write_space callback.
- * @sk: socket
+ * @sk: pointer to the socket structure
  *
- * FIXME: write proper description
+ * This function is invoked when there's space available in the socket's
+ * send buffer for writing. It first checks if the socket is writable,
+ * clears the SOCK_NOSPACE flag indicating that memory for writing
+ * is now available, wakes up any processes waiting for write operations
+ * and sends asynchronous notifications if needed.
  */
 void sk_stream_write_space(struct sock *sk)
 {
Signature · 1 line
2.50.1
#1 lore raw
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Wed, 16 Jul 2025 21:04:04 +0530 you wrote:

Add a proper description for the sk_stream_write_space() function as previously marked by a FIXME comment.
No functional changes.

---
 net/core/stream.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Here is the summary with links:
- net: stream: add description for sk_stream_write_space()

    https://git.kernel.org/netdev/net-next/c/8b7ab8eb52b5

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html