kern_linker.c (a91f68bca6f15c83f6aff9a1685a411e7c388938) kern_linker.c (81930014ef2caa3b69ed663b695976aa4ee7b34d)
1/*-
2 * Copyright (c) 1997-2000 Doug Rabson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 1194 unchanged lines hidden (view full) ---

1203 *
1204 * If the module name is qualified in any way (contains path, etc.)
1205 * the we simply return a copy of it.
1206 *
1207 * The search path can be manipulated via sysctl. Note that we use the ';'
1208 * character as a separator to be consistent with the bootloader.
1209 */
1210
1/*-
2 * Copyright (c) 1997-2000 Doug Rabson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 1194 unchanged lines hidden (view full) ---

1203 *
1204 * If the module name is qualified in any way (contains path, etc.)
1205 * the we simply return a copy of it.
1206 *
1207 * The search path can be manipulated via sysctl. Note that we use the ';'
1208 * character as a separator to be consistent with the bootloader.
1209 */
1210
1211static char def_linker_path[] = "/boot/modules/;/modules/;/boot/kernel/";
1212static char linker_path[MAXPATHLEN] = "";
1211static char linker_path[MAXPATHLEN] = "/boot/modules/;/modules/;/boot/kernel/";
1213
1214SYSCTL_STRING(_kern, OID_AUTO, module_path, CTLFLAG_RW, linker_path,
1215 sizeof(linker_path), "module load search path");
1216
1212
1213SYSCTL_STRING(_kern, OID_AUTO, module_path, CTLFLAG_RW, linker_path,
1214 sizeof(linker_path), "module load search path");
1215
1217TUNABLE_STR_DECL("module_path", def_linker_path, linker_path,
1218 sizeof(linker_path));
1216TUNABLE_STR("module_path", linker_path, sizeof(linker_path));
1219
1220static char *linker_ext_list[] = {
1221 ".ko",
1222 "",
1223 NULL
1224};
1225
1226static char *

--- 197 unchanged lines hidden ---
1217
1218static char *linker_ext_list[] = {
1219 ".ko",
1220 "",
1221 NULL
1222};
1223
1224static char *

--- 197 unchanged lines hidden ---