Skip to contentSkip to conversation

vsock.7: ioctls are on /dev/vsock, not sockets

PATCH In review Alyssa Ross 2 participants 3 messages Mar 24, 2021 – Apr 6, 2021 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vsock.7: ioctls are on /dev/vsock, not sockets

---
When I discovered /dev/vsock, I had a look for a vsock(4), but there's no such page. I suppose there isn't really anything to document there that isn't already covered there.

 man7/vsock.7 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
man7/vsock.7 +4 -1
index eae1d4ee7..7aa572d4b 100644
@@ -148,6 +148,9 @@ The local CID may change across live migration if the old CID is
 not available on the new host.
 Bound sockets are automatically updated to the new CID.
 .SS Ioctls
+The following ioctls are available on the
+.IR /dev/vsock
+device.
 .TP
 .B IOCTL_VM_SOCKETS_GET_LOCAL_CID
 Get the CID of the local machine.
@@ -156,7 +159,7 @@ The argument is a pointer to an
 .IP
 .in +4n
 .EX
-ioctl(socket, IOCTL_VM_SOCKETS_GET_LOCAL_CID, &cid);
+ioctl(fd, IOCTL_VM_SOCKETS_GET_LOCAL_CID, &cid);
 .EE
 .in
 .IP
Signature · 1 line
2.30.0
#1 lore raw
Quoted 7 lines · Alyssa Ross

---
When I discovered /dev/vsock, I had a look for a vsock(4), but there's no such page. I suppose there isn't really anything to document there that isn't already covered there.

 man7/vsock.7 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Just realised I forgot. :)

#2 lore raw

Hi Alyssa,

Quoted 7 lines · Alyssa Ross
Quoted 5 lines · Alyssa Ross

---
When I discovered /dev/vsock, I had a look for a vsock(4), but there's no such page. I suppose there isn't really anything to document there that isn't already covered there.

Quoted 6 lines
Quoted 2 lines
 man7/vsock.7 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Just realised I forgot. :)

Thanks. Patch applied.

Cheers,

Michael

Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/