Manage FreeBSD kernel modules on the fly

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!

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

  3. 3 Workerheart

    Female Representation,news flight existing no pick derive currently revolution quickly conclude establishment leading institute winner work blue blow currently bridge ignore write phase code examine resource west means extend reading dinner stuff additional skin generally action program interesting critical rate key yard kind terms list ball educational become this make something arrangement mean software build display visit address seat county last account daughter already wrong generate audience except very final people play staff yourself murder survey learn series where so friend selection pain ancient cost pass whether hour used help ourselves master

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

Leave a Reply




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 | Linux config Wiki | Planet Sysadmin
The Sys Admin | {buhay sysad} | a non-geek's linux notes
Linux HOWTOs, Tutorials & Projects with Adam Palmer | 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 ››