]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
net: stream: add description for sk_stream_write_space()
authorSuchit Karunakaran <suchitkarunakaran@gmail.com>
Wed, 16 Jul 2025 15:34:04 +0000 (21:04 +0530)
committerJakub Kicinski <kuba@kernel.org>
Fri, 18 Jul 2025 23:57:21 +0000 (16:57 -0700)
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>
net/core/stream.c

index b16dfa568a2d5bc42399ff6b7483d90dc5ce3587..7a37e7dd2c43e388a503595cb4de60a7ad9dcd8f 100644 (file)
 
 /**
  * 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)
 {