FreeBSD Load Device Driver / Kernel Module

by on December 1, 2004 · 1 comment· Last updated March 11, 2008

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


You should follow me on twitter here or grab rss feed to keep track of new changes.

Featured Articles:

{ 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

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 2 + 8 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




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

Previous post:

Next post: