Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Suchit Karunakaran and committed by
Jakub Kicinski
8b7ab8eb d61f6cb6

+6 -2
+6 -2
net/core/stream.c
··· 23 23 24 24 /** 25 25 * sk_stream_write_space - stream socket write_space callback. 26 - * @sk: socket 26 + * @sk: pointer to the socket structure 27 27 * 28 - * FIXME: write proper description 28 + * This function is invoked when there's space available in the socket's 29 + * send buffer for writing. It first checks if the socket is writable, 30 + * clears the SOCK_NOSPACE flag indicating that memory for writing 31 + * is now available, wakes up any processes waiting for write operations 32 + * and sends asynchronous notifications if needed. 29 33 */ 30 34 void sk_stream_write_space(struct sock *sk) 31 35 {