From owner-cvs-src-old@FreeBSD.ORG Fri Dec 5 13:42:14 2008 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E11B106564A for ; Fri, 5 Dec 2008 13:42:14 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8BE048FC17 for ; Fri, 5 Dec 2008 13:42:14 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id mB5DgEgG079399 for ; Fri, 5 Dec 2008 13:42:14 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id mB5DgEEW079398 for cvs-src-old@freebsd.org; Fri, 5 Dec 2008 13:42:14 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200812051342.mB5DgEEW079398@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Fri, 5 Dec 2008 13:40:25 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_linker.c kern_module.c src/sys/sys module.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Dec 2008 13:42:14 -0000 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