Article 5KWH6 Does the vsock really support datagram operations?

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!latest?d=yIl2AUoC8zA latest?i=e6dj-FkN4q0:EDMgeKWymNQ:F7zBnMy latest?i=e6dj-FkN4q0:EDMgeKWymNQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=e6dj-FkN4q0:EDMgeKWymNQ:gIN9vFwe6dj-FkN4q0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments