summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMike Larkin <mlarkin@cvs.openbsd.org>2019-09-22 08:47:55 +0000
committerMike Larkin <mlarkin@cvs.openbsd.org>2019-09-22 08:47:55 +0000
commita42e307ec19c3241973491a108b9f94cd00b0966 (patch)
treea7288b7bb5e4e2d31b1d724abc40faf2a54316d6 /sys/arch
parent685a1eef6a2789f3496135ff8fbb1833c7d742e3 (diff)
vmm(4): fix a wrong comment in vmmopen()
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/amd64/vmm.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/vmm.c b/sys/arch/amd64/amd64/vmm.c
index 35c571e2a0b..250098471fc 100644
--- a/sys/arch/amd64/amd64/vmm.c
+++ b/sys/arch/amd64/amd64/vmm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmm.c,v 1.253 2019/09/11 16:55:53 anton Exp $ */
+/* $OpenBSD: vmm.c,v 1.254 2019/09/22 08:47:54 mlarkin Exp $ */
/*
* Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org>
*
@@ -430,7 +430,15 @@ vmm_attach(struct device *parent, struct device *self, void *aux)
/*
* vmmopen
*
- * Called during open of /dev/vmm. Presently unused.
+ * Called during open of /dev/vmm.
+ *
+ * Parameters:
+ * dev, flag, mode, p: These come from the character device and are
+ * all unused for this function
+ *
+ * Return values:
+ * ENODEV: if vmm(4) didn't attach or no supported CPUs detected
+ * 0: successful open
*/
int
vmmopen(dev_t dev, int flag, int mode, struct proc *p)