Skip to content

Commit 8b7ab8e

Browse files
suchit07-gitkuba-moo
authored andcommitted
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent d61f6cb commit 8b7ab8e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

net/core/stream.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@
2323

2424
/**
2525
* sk_stream_write_space - stream socket write_space callback.
26-
* @sk: socket
26+
* @sk: pointer to the socket structure
2727
*
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.
2933
*/
3034
void sk_stream_write_space(struct sock *sk)
3135
{

0 commit comments

Comments
 (0)