netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: stream: add description for sk_stream_write_space()
@ 2025-07-16 15:34 Suchit Karunakaran
  2025-07-19  0:10 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Suchit Karunakaran @ 2025-07-16 15:34 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, horms, netdev
  Cc: skhan, linux-kernel-mentees, linux-kernel, Suchit Karunakaran

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>
---
 net/core/stream.c | 8 ++++++--
 1 file 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)
 {
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net: stream: add description for sk_stream_write_space()
  2025-07-16 15:34 [PATCH] net: stream: add description for sk_stream_write_space() Suchit Karunakaran
@ 2025-07-19  0:10 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-07-19  0:10 UTC (permalink / raw)
  To: Suchit K
  Cc: davem, edumazet, kuba, pabeni, horms, netdev, skhan,
	linux-kernel-mentees, linux-kernel

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

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.
> 
> Signed-off-by: Suchit Karunakaran <suchitkarunakaran@gmail.com>
> ---
>  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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-07-19  0:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-16 15:34 [PATCH] net: stream: add description for sk_stream_write_space() Suchit Karunakaran
2025-07-19  0:10 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).