Date: Wed, 14 Jul 2004 22:37:37 +0000 (UTC) From: Poul-Henning Kamp <phk@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_module.c Message-ID: <200407142237.i6EMbbfY022620@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
phk 2004-07-14 22:37:36 UTC FreeBSD src repository Modified files: sys/kern kern_module.c Log: A module with no modevent function gets modevent_nop() as default. Until now the function has just returned zero for any event, but that is downright wrong for MOD_UNLOAD and not very useful for any future events we add where it may be crucial to be able to tell if the event was unhandled or successful. Change the function to return as follows: MOD_LOAD -> 0 MOD_UNLOAD -> EBUSY anything else -> EOPNOTSUPP Revision Changes Path 1.44 +9 -1 src/sys/kern/kern_module.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407142237.i6EMbbfY022620>