Date: Fri, 5 Dec 2008 13:40:25 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern kern_linker.c kern_module.c src/sys/sys module.h Message-ID: <200812051342.mB5DgEEW079398@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2008-12-05 13:40:25 UTC FreeBSD src repository Modified files: sys/kern kern_linker.c kern_module.c sys/sys module.h Log: SVN rev 185635 on 2008-12-05 13:40:25Z by jhb - Invoke MOD_QUIESCE on all modules in a linker file (kld) before unloading any modules. As a result, if any module veto's an unload request via MOD_QUIESCE, the entire set of modules for that linker file will remain loaded and active now rather than leaving the kld in a weird state where some modules are loaded and some are unloaded. - This also moves the logic for handling the "forced" unload flag out of kern_module.c and into kern_linker.c which is a bit cleaner. - Add a module_name() routine that returns the name of a module and use that instead of printing pointer values in debug messages when a module fails MOD_QUIESCE or MOD_UNLOAD. MFC after: 1 month Revision Changes Path 1.162 +27 -4 src/sys/kern/kern_linker.c 1.56 +20 -5 src/sys/kern/kern_module.c 1.25 +3 -1 src/sys/sys/module.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812051342.mB5DgEEW079398>