Module Name: src Committed By: pgoyette Date: Fri Nov 6 02:26:42 UTC 2015
Modified Files: src/sys/kern: init_main.c sysv_ipc.c sysv_msg.c sysv_sem.c sysv_shm.c src/sys/sys: msg.h sem.h shm.h Log Message: In sysv_sem.c, defer establishment of exithook so we can initialize the module code from module_init() rather than waiting until after calling exec_init(). Use a RUN_ONCE routine at entry to each sys_sem* syscall to establish the exithook, and no longer KASSERT that the hook has been set before removing it. (A manually loaded module can be unloaded before any syscalls have been invoked.) Remove the conditional calls to the various xxx_init() routines from init_main.c - we now rely on module_init() to handle initialization. Let each sub-component's xxx_init() routine handle its own sysctl sub-tree initialization; this removes another set of #ifdef ugliness. Tested both built-in and loadable versions and verified that atf test kernel/t_sysv passes. To generate a diff of this commit: cvs rdiff -u -r1.472 -r1.473 src/sys/kern/init_main.c cvs rdiff -u -r1.29 -r1.30 src/sys/kern/sysv_ipc.c cvs rdiff -u -r1.69 -r1.70 src/sys/kern/sysv_msg.c cvs rdiff -u -r1.94 -r1.95 src/sys/kern/sysv_sem.c cvs rdiff -u -r1.129 -r1.130 src/sys/kern/sysv_shm.c cvs rdiff -u -r1.25 -r1.26 src/sys/sys/msg.h cvs rdiff -u -r1.31 -r1.32 src/sys/sys/sem.h cvs rdiff -u -r1.50 -r1.51 src/sys/sys/shm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.