Does the vsock really support datagram operations?
by Pzi0 from LinuxQuestions.org on (#5KWH6)
I am new to the linux kernel and have been looking at vsock related code lately.
Based on the code I observed, I found that the kernel vsock code doesn't do adaptations for datagram transfers.
Does this indicate that vsock does not support using datagram to transfer data?
The reason:
The bind method which will be called(virtio_transport_dgram_bind in file virtio_transport_common.c) returns -EOPNOTSUPP directly.
My question:
If vsock doesn't support datagram transfers, why are other related functions such as vsock_dgram_connect or vsock_dgram_sendmsg implemented? Even though the call to vsock_auto_bind in them fails.
Sorry if my english sounds strange for that I am not a native speakers.
Thanks in advance!
Based on the code I observed, I found that the kernel vsock code doesn't do adaptations for datagram transfers.
Does this indicate that vsock does not support using datagram to transfer data?
The reason:
The bind method which will be called(virtio_transport_dgram_bind in file virtio_transport_common.c) returns -EOPNOTSUPP directly.
My question:
If vsock doesn't support datagram transfers, why are other related functions such as vsock_dgram_connect or vsock_dgram_sendmsg implemented? Even though the call to vsock_auto_bind in them fails.
Sorry if my english sounds strange for that I am not a native speakers.
Thanks in advance!