FreeBSD Load Device Driver / Kernel Module

by on December 1, 2004 · 1 comment· LAST UPDATED March 11, 2008

in

Under FreeBSD operating system you need to use the kldload utility to load file.ko into the kernel using the kernel linker. You can find all loadable kernel drivers in in /boot/kernel or /boot/modules/ directory. Some modules (pf, ipfw, ipf, etc.) may be automatically loaded at boot time when the corresponding /etc/rc.conf statement is used. Modules may also be auto-loaded through their addition to loader.conf.

You must login as root user to load or unload modules.

Task: How do I use kldload command to load module

To load smbfs module run command:
# kldload {module-name}
# kldload {driver-name}
# kldload smbfs

OR
# kldload -v smbfs
Sample output:

Loaded smbfs, id=8
TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 1 comment… read it below or add one }

1 Javier June 22, 2012 at 12:57 am

Thanks!! its very useful

Reply

Leave a Comment

Tagged as: , , , , , , , , , ,

Previous post:

Next post: