From a42e307ec19c3241973491a108b9f94cd00b0966 Mon Sep 17 00:00:00 2001 From: Mike Larkin Date: Sun, 22 Sep 2019 08:47:55 +0000 Subject: vmm(4): fix a wrong comment in vmmopen() --- sys/arch/amd64/amd64/vmm.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'sys/arch') 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 * @@ -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) -- cgit v1.2.3