Manage FreeBSD kernel modules on the fly

Welcome to Linux Screw! If you're new here, you may want to subscribe our RSS feed.

There are several utilities in FreeBSD to manage kernel modules. Among them are: kldload, kldstat, kldunload.

First (kldload) would be useful for loading files *.ko into FreeBSD kernel using kernel linker. Second (kldstat) displays status of files loaded into kernel. Third (kldunload) helps to unload files which were previously loaded into kernel with kldload.

This utilities are analogues of modprobe and lsmod utilities in Linux.

Example: in order to enable ipfw kernel module without FreeBSD restarting you can do:

cd /boot/kernel
kldload ipfw.ko

Another way to enable ipfw is to add line firewall_enable="YES" into /etc/rc.conf and restart FreeBSD. But kldload method is much more easier and fast as for me :)

Share This
Related posts:
Get information about Linux kernel modules
How to restart/stop/start networking in FreeBSD
FAQ: How to set up atomatic Linux reboot if kernel panic occurs?
Web app. of the day: interactive Linux kernel map
10+ advices BEFORE you rebuild Linux kernel
 
 
 
Your Ad Here


2 Responses to “Manage FreeBSD kernel modules on the fly”


  1. 1 Oliver Herold

    You don't need to change the directory, kldload ipfw is enough.

  2. 2 artiomix

    Thank you for the comment, Oliver!

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word