Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_linker.c
Show First 20 Lines • Show All 417 Lines • ▼ Show 20 Lines | |||||
static void | static void | ||||
linker_init_kernel_modules(void) | linker_init_kernel_modules(void) | ||||
{ | { | ||||
sx_xlock(&kld_sx); | sx_xlock(&kld_sx); | ||||
linker_file_register_modules(linker_kernel_file); | linker_file_register_modules(linker_kernel_file); | ||||
sx_xunlock(&kld_sx); | sx_xunlock(&kld_sx); | ||||
} | } | ||||
SYSINIT(linker_kernel, SI_SUB_KLD, SI_ORDER_ANY, linker_init_kernel_modules); | |||||
SYSINIT(linker_kernel, SI_SUB_KLD, SI_ORDER_ANY, linker_init_kernel_modules, | |||||
NULL); | |||||
static int | static int | ||||
linker_load_file(const char *filename, linker_file_t *result) | linker_load_file(const char *filename, linker_file_t *result) | ||||
{ | { | ||||
linker_class_t lc; | linker_class_t lc; | ||||
linker_file_t lf; | linker_file_t lf; | ||||
int foundfile, error, modules; | int foundfile, error, modules; | ||||
▲ Show 20 Lines • Show All 1,916 Lines • Show Last 20 Lines |