FreeBSD: Load Kernel Module at Runtime

by on October 1, 2008 · 0 comments· last updated at 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.



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

Featured Articles:

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <kbd> <blockquote> <pre> <a href="" title="">

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

Previous Faq:

Next Faq: