About Linux FAQ

Browse More FAQs:

FreeBSD: Load Kernel Module at Runtime

Posted by Vivek Gite [Last updated: October 1, 2008]

Q. How do I load a kernel module at runtime from a shell prompt under FreeBSD UNIX operating systems?

A. You need to use the kldload utility loads file.ko into the kernel using the kernel linker. /boot/kernel directory containing loadable modules. Modules must have an extension of .ko. The kldload utility exits 0 on success, and >0 if an error occurs.

Load module called foo

Type the command as follows:
# kldload foo
To list loaded module use kldstat:
# kldstat
Some modules such as pf, ipfw, ipf, etc. may be automatically loaded at boot time when the corresponding rc.conf statement is used.

Ubuntu / Kubuntu Ubuntu Ver. 8.10 and Linux Training Library 2DVD+CD

E-mail    Print    Can't find an answer to your question? Contact us

Related Other Helpful FAQs:

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!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Tags: , , , , , , , , , , ,

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Powered by Open source software.