]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vsock: add support for SIOCOUTQ ioctl
authorLuigi Leonardi <luigi.leonardi@outlook.com>
Tue, 30 Jul 2024 19:43:06 +0000 (21:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Aug 2024 08:20:28 +0000 (09:20 +0100)
commit744500d81f81346b4d442809c0511684bb28c829
tree8cdd72112e1bcaf0a4d43e5cbe053feb9535f611
parent5fe164fb0e6e31dbcbb4b706fd76bc578e5af4c6
vsock: add support for SIOCOUTQ ioctl

Add support for ioctl(s) in AF_VSOCK.
The only ioctl available is SIOCOUTQ/TIOCOUTQ, which returns the number
of unsent bytes in the socket. This information is transport-specific
and is delegated to them using a callback.

Suggested-by: Daan De Meyer <daan.j.demeyer@gmail.com>
Signed-off-by: Luigi Leonardi <luigi.leonardi@outlook.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/af_vsock.h
net/vmw_vsock/af_vsock.c