From owner-cvs-all Sun Nov 7 22:53:33 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 7F5C314BF5; Sun, 7 Nov 1999 22:53:31 -0800 (PST) (envelope-from peter@FreeBSD.org) Received: (from peter@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id WAA48641; Sun, 7 Nov 1999 22:53:31 -0800 (PST) (envelope-from peter@FreeBSD.org) Message-Id: <199911080653.WAA48641@freefall.freebsd.org> From: Peter Wemm Date: Sun, 7 Nov 1999 22:53:31 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_module.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk peter 1999/11/07 22:53:31 PST Modified files: sys/kern kern_module.c Log: A hack basically.. We have a bunch of code that used to call devsw_module_handler() indirectly and not use the chain arguments. To eliminate this indirection via that function (which does nothing now) without duplicating a modevent handler into all the routines that don't presently have one, supply a NOP (do nothing, return OK) routine which is functionally equivalent to what's there now. This is a hack and is still wrong, because there doesn't appear to be anything to reclaim resources on an unload of a module with one of these in it. I'm not sure whether to make the NOP handler refuse a MOD_UNLOAD event or what. Revision Changes Path 1.21 +9 -2 src/sys/kern/kern_module.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message