Re: [PATCH net-next 6/6] tipc: convert to getsockopt_iter
Stanislav Fomichev <[email protected]> Wed, 13 May 2026 08:34:43 -0700
| Newsgroups | dev.linux.lists.oe-linux-nfc,org.kernel.vger.bpf,org.kernel.vger.linux-kernel,org.kernel.vger.linux-s390,org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
On 05/13, Breno Leitao wrote: > Convert TIPC sockets (msg, packet, stream proto_ops) to use the new > getsockopt_iter callback with sockopt_t. > > Key changes: > - Replace (char __user *optval, int __user *optlen) with sockopt_t *sopt > - Use sopt->optlen for buffer length (input) and returned size (output) > - Use copy_to_iter() instead of put_user()/copy_to_user() > > The sockopt_t parameter is named sopt to avoid collision with the > existing optname parameter named opt. > > Note: Dropped the unnecessary parentheses to make checkpatch happier. > > Signed-off-by: Breno Leitao <[email protected]> Acked-by: Stanislav Fomichev <[email protected]>