FreeBSD: Load Kernel Module at Runtime
Q. How do I load a kernel module at runtime from a shell prompt under FreeBSD UNIX operating systems?
A. You need to use the kldload utility loads file.ko into the kernel using the kernel linker. /boot/kernel directory containing loadable modules. Modules must have an extension of .ko. The kldload utility exits 0 on success, and >0 if an error occurs.
Load module called foo
Type the command as follows:
# kldload foo
To list loaded module use kldstat:
# kldstat
Some modules such as pf, ipfw, ipf, etc. may be automatically loaded at boot time when the corresponding rc.conf statement is used.
Ubuntu / Kubuntu Ubuntu Ver. 8.10 and Linux Training Library 2DVD+CD
E-mail
Print
Can't find an answer to your question? Contact us
Related Other Helpful FAQs:
- Linux: How to load a kernel module automatically at boot time
- On Linux how many kernel you can compile at the same time and how many kernel you can load in Linux?
- Linux Kernel panic VFS Unable to mount root fs and solution
- Linux Broadcom Ethernet Card driver installation
- FreeBSD: Apache No such file or directory: Failed to enable the 'httpready' Accept Filter
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: boot kernel, boot time, freebsd unix, ipf, kernel directory, kernel module, kldload command, kldstat command, ko, loadable modules, shell, unix operating systems



Recent Comments
Today ~ 17 Comments
Today ~ 5 Comments
Today ~ 11 Comments
Yesterday ~ 24 Comments
Yesterday ~ 6 Comments