Deleted Added
full compact
kern_linker.c (74642) kern_linker.c (77843)
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/kern/kern_linker.c 74642 2001-03-22 08:58:45Z bp $
26 * $FreeBSD: head/sys/kern/kern_linker.c 77843 2001-06-06 22:17:08Z peter $
27 */
28
29#include "opt_ddb.h"
30
31#include <sys/param.h>
32#include <sys/kernel.h>
33#include <sys/systm.h>
34#include <sys/malloc.h>

--- 1168 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
27 */
28
29#include "opt_ddb.h"
30
31#include <sys/param.h>
32#include <sys/kernel.h>
33#include <sys/systm.h>
34#include <sys/malloc.h>

--- 1168 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 ---