Re: [PATCH net-next 5/7] phonet: pep: convert getsockopt to sockopt_t

From: Rémi Denis-Courmont

Date: Fri Jul 17 2026 - 02:52:12 EST




Le 16 juillet 2026 16:00:03 GMT+03:00, Breno Leitao <leitao@xxxxxxxxxx> a écrit :
>Continue converting the proto-layer getsockopt callbacks to the
>sockopt_t interface, splitting pep_getsockopt() into a
>do_pep_getsockopt() helper that takes a sockopt_t.
>
>The thin pep_getsockopt() wrapper keeps its __user signature for now:
>it builds a user-backed sockopt_t with sockopt_init_user(), calls the
>helper, and writes the returned length back to optlen. The helper uses
>copy_to_iter() instead of copy_to_user(). No functional change.
>
>Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>

Acked-by: Rémi Denis-Courmont <remi@xxxxxxxxxx>