Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dev Add autounload logic to dtrace modul...
details: https://anonhg.NetBSD.org/src/rev/95a25120c510
branches: trunk
changeset: 814778:95a25120c510
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Apr 09 15:18:48 2016 +0000
description:
Add autounload logic to dtrace module prototype.
diffstat:
external/cddl/osnet/dev/prototype.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 0c30d2ea2ca3 -r 95a25120c510 external/cddl/osnet/dev/prototype.c
--- a/external/cddl/osnet/dev/prototype.c Sat Apr 09 15:17:58 2016 +0000
+++ b/external/cddl/osnet/dev/prototype.c Sat Apr 09 15:18:48 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: prototype.c,v 1.3 2015/03/09 03:43:02 riastradh Exp $ */
+/* $NetBSD: prototype.c,v 1.4 2016/04/09 15:18:48 riastradh Exp $ */
/*-
* Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: prototype.c,v 1.3 2015/03/09 03:43:02 riastradh Exp $");
+__RCSID("$NetBSD: prototype.c,v 1.4 2016/04/09 15:18:48 riastradh Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -168,6 +168,10 @@
return prototype_init();
case MODULE_CMD_FINI:
return prototype_fini();
+ case MODULE_CMD_AUTOUNLOAD:
+ if (prototype_users)
+ return EBUSY;
+ return 0;
default:
return ENOTTY;
}
Home |
Main Index |
Thread Index |
Old Index