[OpenIndiana-discuss] kernel modules

James Carlson carlsonj at workingcode.com
Wed May 2 19:21:04 UTC 2012


Ignacio Marambio Catán wrote:
> modload(1M) but typically modules are loaded automagically when needed
> 
> On Wed, May 2, 2012 at 4:10 PM, mattias <mj at mjw.se> wrote:
>> how to load kernel modules?

The best answer is probably to ask: what exactly are you trying to do?

If you're writing your own kernel module, it should normally fit into
one of the existing automatic loading categories (device driver, STREAMS
module, file system, framework extension).  If it doesn't, you should
have a Really Good Reason for designing it that way, and even then, you
might want to reconsider.

If you're writing a module that depends on another module, use "-dy
-Nxxx/yyy" to get the other module to load before yours.

If it's because you're seeing a kernel module fail to load properly,
then that's a problem that needs to be investigated.  There's usually no
meaningful way to "force" a failing module to load.  modload won't fix it.

If you're doing something else, then please explain in detail.

-- 
James Carlson         42.703N 71.076W         <carlsonj at workingcode.com>



More information about the OpenIndiana-discuss mailing list