NetBSD/sys
pgoyette c1df4ef16b In module_do_load(), consolidate checking for a pre-existing module,
and return a single error value EEXIST.  When making a recursive
call (to load required modules), treat a pre-existing module as
success.

Without this change, when a module was loaded by specific request
(as opposed to being loaded as a requirement of some other module),
we would always load the module from the file-system, and then
after making various sanity/compatability checks we would destroy
the new copy if there was a pre-existing copy.

Fixes PR kern/40764

XXX Note that if the module exists, we bypass all of the various
XXX "compatability" checks, including whether or not the existing
XXX module is of any particular class!  (In the previous code, we
XXX checked to see if the newly-loaded copy had the correct class,
XXX but not the pre-existing copy, which could have been loaded
XXX from a different path/filename.)
2016-02-06 22:48:07 +00:00
..
altq Prevent interface deletion from running into an infinite loop when altq closes. 2016-01-22 18:19:54 +00:00
arch Fix some awkward language in manpage and code comments. 2016-02-06 20:20:18 +00:00
coda More on PR 41200: headers that declare ioctls should include sys/ioccom.h. 2015-09-06 06:00:59 +00:00
compat Avoid defining inline functions that are never used when certain options 2016-01-07 21:58:28 +00:00
conf WELCOME 2016! 2015-12-31 15:23:07 +00:00
crypto
ddb Add support for 'q' qualifier for 64-bit values on examine and write. 2015-06-06 22:06:05 +00:00
dev Avoid shadowing global `min'. 2016-02-06 02:40:49 +00:00
dist/pf include "ioconf.h" to get the 'void <driver>attach(int count);' prototype. 2015-08-20 14:40:16 +00:00
external Don't return void. 2016-02-06 00:31:58 +00:00
fs Toolify. 2016-02-06 14:11:58 +00:00
gdbscripts
ipkdb
kern In module_do_load(), consolidate checking for a pre-existing module, 2016-02-06 22:48:07 +00:00
lib Add an option (LIBSA_CREAD_NOCRC) to disable gunzip CRC32 calculation. 2016-01-17 04:35:42 +00:00
miscfs Fix a couple of checks for kernel vm_space, and convert the 'naked 2016-01-05 09:07:19 +00:00
modules Split case folding table into separate source file and add full 2016-02-06 10:40:58 +00:00
net Do less work under the kernel lock, otherwise dhcpcd aborting causes us 2016-02-01 16:32:28 +00:00
net80211 More on PR 41200: headers that declare ioctls should include sys/ioccom.h. 2015-09-06 06:00:59 +00:00
netatalk Revert previous: ran cvs commit when I meant cvs diff. Sorry! 2016-01-21 15:41:29 +00:00
netbt Revert previous: ran cvs commit when I meant cvs diff. Sorry! 2016-01-21 15:41:29 +00:00
netinet eliminate variable argument in encapsw 2016-01-26 06:00:10 +00:00
netinet6 Declare in6_tmpaddrtimer_ch in in6_var.h. 2016-02-04 02:48:37 +00:00
netipsec eliminate variable argument in encapsw 2016-01-26 06:00:10 +00:00
netisdn More on PR 41200: headers that declare ioctls should include sys/ioccom.h. 2015-09-06 06:00:59 +00:00
netkey
netmpls sprinkle _KERNEL_OPT 2015-08-24 22:21:26 +00:00
netnatm Eliminate struct protosw::pr_output. 2016-01-20 21:43:59 +00:00
netsmb include "ioconf.h" to get the 'void <driver>attach(int count);' prototype. 2015-08-20 14:40:16 +00:00
nfs Return an error if NFSPROC_LOOKUP returns the file handle of the current 2016-01-19 10:56:59 +00:00
opencrypto Needs sys/time.h for struct timespec. 2016-01-22 22:35:27 +00:00
rump Split case folding table into separate source file and add full 2016-02-06 10:40:58 +00:00
secmodel secmodel_extensions_system_cb() is not mount-specific, even though 2015-12-12 14:57:52 +00:00
stand
sys Don't do _BSD_SIZE_T_ dance here. Use <stddef.h> in userland. 2016-02-06 15:36:36 +00:00
ufs u_int{16,32,64}_t -> uint{16,32,64}_t, for the benefit of userland. 2016-01-22 23:06:10 +00:00
uvm PR/50744: NONAKA Kimihiro: Protect more stuff with _KERNEL && _KMEMUSER to 2016-02-05 04:18:55 +00:00
Makefile