FreeBSD Load Device Driver / Kernel Module
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
Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or full RSS feed to get all updates.
You can Email this page to a friend.
You may also be interested in...
- Howto: Prevent a Linux kernel module from auto loading
- FreeBSD > How to load device driver (module) automatically every time system comes up?
- How to display or show information about a Linux Kernel module or drivers
- FreeBSD: How to unload (remove) device driver (module) from kernel?
- How do I stop a Linux kernel module from loading automatically?
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: /boot/kernel, /boot/modules, /etc/rc.conf, boot time, freebsd load driver, freebsd load module, kernel drivers, kldload command, ko, operating system, root user ~ Last updated on: March 11, 2008



Recent Comments
Today ~ 6 Comments
Today ~ 36 Comments
Today ~ 2 Comments
Today ~ 12 Comments
Yesterday ~ 7 Comments