Module Name: src Committed By: riastradh Date: Tue Jun 1 22:58:03 UTC 2021
Modified Files: src/sys/dev: dev_verbose.h Log Message: 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! To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/dev/dev_verbose.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/dev_verbose.h diff -u src/sys/dev/dev_verbose.h:1.4 src/sys/dev/dev_verbose.h:1.5 --- src/sys/dev/dev_verbose.h:1.4 Tue Aug 11 12:10:10 2020 +++ src/sys/dev/dev_verbose.h Tue Jun 1 22:58:03 2021 @@ -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 ## verbose_modcmd(modcmd_t cmd, void tag ## _findproduct = saved_findproduct; \ tag ## verbose_loaded = 0; \ return 0; \ + case MODULE_CMD_AUTOUNLOAD: \ + return EBUSY; \ default: \ return ENOTTY; \ } \