]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
A hack basically.. We have a bunch of code that used to call
authorPeter Wemm <peter@FreeBSD.org>
Mon, 8 Nov 1999 06:53:30 +0000 (06:53 +0000)
committerPeter Wemm <peter@FreeBSD.org>
Mon, 8 Nov 1999 06:53:30 +0000 (06:53 +0000)
commit845ccef4b807b99237f2f955f84aff432ab2389b
treed59495ee3152ea51e8ce8a62d2bc8c0b22fece4f
parent75bd443641e554d5ca0a4a1b8102d057bc860486
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.
sys/kern/kern_module.c