summaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorSuchit Karunakaran <suchitkarunakaran@gmail.com>2025-07-16 21:04:04 +0530
committerJakub Kicinski <kuba@kernel.org>2025-07-18 16:57:21 -0700
commit8b7ab8eb52b51a7058edf0035e47b281f9fc9a19 (patch)
tree8ea525e000ac185d287ae74fd82e4b15e90c7b25 /net/core
parentd61f6cb6f6ef3c70d2ccc0d9c85c508cb8017da9 (diff)
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. Signed-off-by: Suchit Karunakaran <suchitkarunakaran@gmail.com> Link: https://patch.msgid.link/20250716153404.7385-1-suchitkarunakaran@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/stream.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/core/stream.c b/net/core/stream.c
index b16dfa568a2d..7a37e7dd2c43 100644
--- a/net/core/stream.c
+++ b/net/core/stream.c
@@ -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)
{