Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev dev_verbose(9): Prohibit autounloading modules.
details: https://anonhg.NetBSD.org/src/rev/5cfa34c2dfe1
branches: trunk
changeset: 1021502:5cfa34c2dfe1
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Jun 01 22:58:03 2021 +0000
description:
dev_verbose(9): Prohibit autounloading modules.
This logic is not safe for autounload right now -- there's no
mechanism by which to block new users and wait for existing users to
drain when unloading. To be remedied!
diffstat:
sys/dev/dev_verbose.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 3d053fba87c5 -r 5cfa34c2dfe1 sys/dev/dev_verbose.h
--- a/sys/dev/dev_verbose.h Tue Jun 01 21:29:24 2021 +0000
+++ b/sys/dev/dev_verbose.h Tue Jun 01 22:58:03 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dev_verbose.h,v 1.4 2020/08/11 12:10:10 uwe Exp $ */
+/* $NetBSD: dev_verbose.h,v 1.5 2021/06/01 22:58:03 riastradh Exp $ */
/*
* Redistribution and use in source and binary forms, with or without
@@ -75,6 +75,8 @@
tag ## _findproduct = saved_findproduct; \
tag ## verbose_loaded = 0; \
return 0; \
+ case MODULE_CMD_AUTOUNLOAD: \
+ return EBUSY; \
default: \
return ENOTTY; \
} \
Home |
Main Index |
Thread Index |
Old Index