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/cyclic Prevent autounload while cycl...
details: https://anonhg.NetBSD.org/src/rev/99f02e432f77
branches: trunk
changeset: 344632:99f02e432f77
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Apr 09 14:50:08 2016 +0000
description:
Prevent autounload while cyclics are still in use.
diffstat:
external/cddl/osnet/dev/cyclic/cyclic.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 267bb2da9e98 -r 99f02e432f77 external/cddl/osnet/dev/cyclic/cyclic.c
--- a/external/cddl/osnet/dev/cyclic/cyclic.c Sat Apr 09 13:38:20 2016 +0000
+++ b/external/cddl/osnet/dev/cyclic/cyclic.c Sat Apr 09 14:50:08 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cyclic.c,v 1.4 2012/12/02 01:05:16 chs Exp $ */
+/* $NetBSD: cyclic.c,v 1.5 2016/04/09 14:50:08 riastradh Exp $ */
/*
* CDDL HEADER START
@@ -1455,6 +1455,12 @@
case MODULE_CMD_FINI:
cyclic_unload();
return 0;
+
+ case MODULE_CMD_AUTOUNLOAD:
+ if (cyclic_id_head != NULL)
+ return EBUSY;
+ return 0;
+
default:
return ENOTTY;
}
Home |
Main Index |
Thread Index |
Old Index