Thread (3 messages) 3 messages, 2 authors, 2021-04-06
STALE1882d

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

From: Alyssa Ross <hidden>
Date: 2021-03-24 14:05:58
Subsystem: the rest · Maintainer: Linus Torvalds

---
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(-)
diff --git a/man7/vsock.7 b/man7/vsock.7
index eae1d4ee7..7aa572d4b 100644
--- a/man7/vsock.7
+++ b/man7/vsock.7
@@ -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
-- 
2.30.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help