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 :)

 
 
» You might also be interested in the following articles:
Get information about Linux kernel modules
Quick fix of FreeBSD rtld vulnerability
How to restart/stop/start networking in FreeBSD
Top 7 iPod managing tools for Linux and Mac
Get FreeBSD ports tree after OS installation



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

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


  1. No Comments

Leave a Reply




Friendly Sites:Who is behind Linux Screw?
GeekyBits³ | Bash Cures Cancer | OMG! Ubuntu!
My SysAd Blog | Web Upd8
ZEPY | Linux config Wiki | Planet Sysadmin
a non-geek's linux notes | Linux Today
TuxArena: The arena of Tux | LinuxAlt.Com
My name is Artem N. (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 ››