|
NAMEkldconfig —
display or modify the kernel module search path
SYNOPSIS
DESCRIPTIONThekldconfig utility displays or modifies the search
path used by the kernel when loading modules using the
kldload(8)
utility or the
kldload(2)
syscall.
The following options are available:
FILES
EXIT STATUSThekldconfig utility exits 0 on success,
and >0 if an error occurs.
EXAMPLESShow the module search path$ kldconfig -r /boot/kernel;/boot/modules;/boot/dtb;/boot/dtb/overlays Try to delete the /boot directory from the search path. The command will fail: $ kldconfig -d /boot kldconfig: not in module search path: /boot $ echo $? 1 Same as above but forcing the operation. This time the command will succeed: $ kldconfig -d -f /boot $ echo $? 0 Add the /boot directory to the beginning of the search path and display extra verbose output: $ kldconfig -i -m -vv /boot /boot/kernel;/boot/modules -> /boot;/boot/kernel;/boot/modules Without $ kldconfig -i -vv /boot /boot;/boot/kernel;/boot/modules;/boot/dtb;/boot/dtb/overlays -> /boot Same as above but using $ kldconfig -i -n -vv /boot /boot;/boot/kernel;/boot/modules;/boot/dtb;/boot/dtb/overlays -> /boot Add directories to the search path removing duplicates. Note the
need of $ kldconfig -f -U /boot/kernel /boot/kernel /boot/modules /boot/dtb /boot/dtb/overlays SEE ALSOkldload(2), kldload(8), kldxref(8), sysctl(8)HISTORYThekldconfig utility first appeared in
FreeBSD 4.4.
AUTHORSPeter Pentchev <roam@FreeBSD.org>
Visit the GSP FreeBSD Man Page Interface. |