]> Gentwo Git Trees - linux/.git/commit
socket: Unify getsockname and getpeername implementation
authorGabriel Krisman Bertazi <krisman@suse.de>
Tue, 25 Nov 2025 21:17:59 +0000 (16:17 -0500)
committerJens Axboe <axboe@kernel.dk>
Wed, 26 Nov 2025 20:45:23 +0000 (13:45 -0700)
commit4677e78800bbde62a9edce0eb3b40c775ec55e0d
treea23b07bf6aed503561746a12f11744318c340d52
parent1e93de9205b4d5c0f06507e9e1c398574a07fb80
socket: Unify getsockname and getpeername implementation

They are already implemented by the same get_name hook in the protocol
level.  Bring the unification one level up to reduce code duplication
in preparation to supporting these as io_uring operations.

Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Signed-off-by: Gabriel Krisman Bertazi <krisman@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/socket.h
net/compat.c
net/socket.c