Re: [PATCH net-next v2 1/2] net: pass const to msg_data_left()

From
Kuniyuki Iwashima <hidden>
Date
2025-04-08 00:54:27
Also in
linux-trace-kernel, lkml
Reply to
Breno Leitao, 2025-04-07
From: Breno Leitao <leitao@debian.org>
Date: Mon, 07 Apr 2025 06:40:43 -0700
The msg_data_left() function doesn't modify the struct msghdr parameter,
so mark it as const. This allows the function to be used with const
references, improving type safety and making the API more flexible.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Kuniyuki Iwashima <redacted>
Thread (12 messages) 12 messages, 4 authors, last reply 2025-04-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help