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
 
 
» You might also be interested in the following articles:
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



» Want to stay up to date? Subscribe to our E-MAIL or RSS feed!


3 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!

  1. 1 fluffigt.com » Blog Archive » FAQ: How to set up atomatic Linux reboot if kernel panic occurs?

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




Friendly Sites:Who is behind Linux Screw?
Aspiring Sysadmin | GeekyBits³ | Bash Cures Cancer | TOTMS
Linux Operating System | Small Linux Deployments | My SysAd Blog
The Danesh Project | ZEPY | LinuxHaxor.net | Planet Sysadmin
The Sys Admin | {buhay sysad} | a non-geek's linux notes
CyberCapital.Org | G-LOADED! | The Linux Alternative Project
My name is Artem Nosulchik (artiomix AT gmail DOT com) and I'm Linux/Unix, Cisco systems engineer. The main idea of Linux Screw is to share relevant knowledge, skills and observations over The Web. Here you can find a lot of information related to different Linux distributions, FreeBSD, IOS as well as a other Open Source around staff. Read more ››