summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2026-10-16 14:27:15 +0100
committerPaolo Abeni <pabeni@redhat.com>2026-10-21 11:58:21 +0200
commitd7bb20b91122fd1e8ecbe6ff9fd13b8eefff8240 (patch)
treef7b8e8abef1ebb7984fb37cd23b97c6a0a1812aa /scripts/Makefile.thinlto
parenta006b921ad32940676993bfae460b9f57547b79b (diff)
downloadlinux-d7bb20b91122fd1e8ecbe6ff9fd13b8eefff8240.tar.gz
linux-d7bb20b91122fd1e8ecbe6ff9fd13b8eefff8240.zip
vsock: support SO_INQ on stream sockets
SO_INQ makes recvmsg() return the bytes left in the receive queue in an SCM_INQ cmsg, saving a SIOCINQ call per receive. AF_UNIX stream sockets support it, AF_VSOCK fails with ENOPROTOOPT. Add it for SOCK_STREAM, reusing the hint already computed for io_uring. As with TCP_INQ, 1 is reported once the stream is finished so the caller reads again and sees EOF, and accepted sockets inherit the setting from the listener. No cmsg is sent when the transport cannot report the queue length. SOCK_SEQPACKET is refused, as on AF_UNIX: its transport callback counts messages, not bytes. Signed-off-by: David Carlier <devnexen@gmail.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Link: https://patch.msgid.link/20261016132716.272018-3-devnexen@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions