2009-06-11 12:11:52 +04:00
|
|
|
.\" $NetBSD: modload.8,v 1.37 2009/06/11 08:11:52 wiz Exp $
|
1995-03-18 17:54:19 +03:00
|
|
|
.\"
|
1993-06-08 07:07:11 +04:00
|
|
|
.\" Copyright (c) 1993 Christopher G. Demetriou
|
|
|
|
.\" All rights reserved.
|
2001-11-16 13:25:42 +03:00
|
|
|
.\"
|
1993-06-08 07:07:11 +04:00
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
2000-06-14 21:24:02 +04:00
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed for the
|
2003-02-14 19:21:47 +03:00
|
|
|
.\" NetBSD Project. See http://www.NetBSD.org/ for
|
2000-06-14 21:24:02 +04:00
|
|
|
.\" information about NetBSD.
|
|
|
|
.\" 4. The name of the author may not be used to endorse or promote products
|
|
|
|
.\" derived from this software without specific prior written permission.
|
2001-11-16 13:25:42 +03:00
|
|
|
.\"
|
1993-06-08 07:07:11 +04:00
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
2001-11-16 13:25:42 +03:00
|
|
|
.\"
|
2000-06-14 21:24:02 +04:00
|
|
|
.\" <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
|
1993-06-08 07:07:11 +04:00
|
|
|
.\"
|
2009-06-10 00:35:02 +04:00
|
|
|
.Dd June 9, 2009
|
1993-06-08 07:07:11 +04:00
|
|
|
.Dt MODLOAD 8
|
2001-06-05 15:22:41 +04:00
|
|
|
.Os
|
1993-06-08 07:07:11 +04:00
|
|
|
.Sh NAME
|
|
|
|
.Nm modload
|
|
|
|
.Nd load a kernel module
|
|
|
|
.Sh SYNOPSIS
|
2003-02-25 13:34:36 +03:00
|
|
|
.Nm
|
2009-06-11 12:11:52 +04:00
|
|
|
.Op Fl fP
|
2009-05-20 02:39:52 +04:00
|
|
|
.Op Fl b Ar var=boolean
|
|
|
|
.Op Fl i Ar var=integer
|
|
|
|
.Op Fl s Ar var=string
|
2008-11-12 15:35:50 +03:00
|
|
|
.Ar module
|
2009-05-20 02:35:41 +04:00
|
|
|
.Nm
|
|
|
|
.Fl p
|
2009-05-20 02:39:52 +04:00
|
|
|
.Op Fl b Ar var=boolean
|
2009-06-05 15:37:30 +04:00
|
|
|
.Op Fl d Ar var
|
2009-05-20 02:39:52 +04:00
|
|
|
.Op Fl i Ar var=integer
|
2009-06-05 13:31:07 +04:00
|
|
|
.Op Fl m Ar plist
|
2009-05-20 02:39:52 +04:00
|
|
|
.Op Fl s Ar var=string
|
1993-06-08 07:07:11 +04:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
2008-11-12 15:35:50 +03:00
|
|
|
utility loads a kernel module specified by the
|
|
|
|
.Ar module
|
|
|
|
paramamter into the running system.
|
|
|
|
.Pp
|
|
|
|
The current working directory is first searched for the module object file.
|
|
|
|
If not found there, the default system module areas are searched.
|
1993-06-08 07:07:11 +04:00
|
|
|
.Pp
|
|
|
|
The options to
|
|
|
|
.Nm
|
|
|
|
are as follows:
|
2009-05-20 02:39:52 +04:00
|
|
|
.Bl -tag -width xbxvarxbooleanx
|
|
|
|
.It Fl b Ar var=boolean
|
2008-11-12 15:35:50 +03:00
|
|
|
Pass the module a boolean property with the name
|
2009-05-20 02:39:52 +04:00
|
|
|
.Ar var .
|
|
|
|
.Ar boolean
|
2008-11-12 15:35:50 +03:00
|
|
|
may be either
|
|
|
|
.Dv true
|
|
|
|
or
|
2008-11-17 05:32:09 +03:00
|
|
|
.Dv false .
|
2009-06-05 15:37:30 +04:00
|
|
|
.It Fl d Ar var
|
|
|
|
When used in conjuction with
|
|
|
|
.Fl m ,
|
|
|
|
delete
|
|
|
|
.Ar var
|
|
|
|
from the
|
|
|
|
.Ar plist
|
|
|
|
specified.
|
2003-09-06 23:23:20 +04:00
|
|
|
.It Fl f
|
2008-11-12 15:35:50 +03:00
|
|
|
When a module is loaded, the kernel checks if the module is compatible
|
|
|
|
with the running kernel and will refuse to load modules that are
|
|
|
|
potentially incompatible.
|
|
|
|
This option disables compatibility checks.
|
|
|
|
.Em Note :
|
|
|
|
an incompatible module can cause system instability, including data
|
2003-09-07 00:09:26 +04:00
|
|
|
loss or corruption.
|
2009-05-20 02:39:52 +04:00
|
|
|
.It Fl i Ar var=integer
|
2009-05-20 02:35:41 +04:00
|
|
|
Pass the module an integer property with the name
|
2009-05-20 02:39:52 +04:00
|
|
|
.Ar var
|
2009-05-20 02:35:41 +04:00
|
|
|
and integral value
|
2009-05-20 02:39:52 +04:00
|
|
|
.Ar integer .
|
2009-06-04 06:57:01 +04:00
|
|
|
.It Fl m Ar plist
|
|
|
|
When used in conjuction with
|
2009-06-05 13:31:07 +04:00
|
|
|
.Fl p ,
|
2009-06-04 06:57:01 +04:00
|
|
|
merge new options with an existing property list contained in
|
|
|
|
.Ar plist .
|
2009-06-10 00:35:02 +04:00
|
|
|
.It Fl P
|
|
|
|
This option tells the kernel not to load an associated property list.
|
2009-05-20 02:09:59 +04:00
|
|
|
.It Fl p
|
|
|
|
Output a property list suitable for loading along with a module.
|
|
|
|
When using this option, you do not need to specify a module.
|
2009-06-05 15:37:30 +04:00
|
|
|
Use
|
|
|
|
.Fl m
|
|
|
|
and
|
|
|
|
.Fl d
|
|
|
|
to read and modify an existing property list.
|
2009-05-20 02:39:52 +04:00
|
|
|
.It Fl s Ar var=string
|
2008-11-12 15:35:50 +03:00
|
|
|
Pass the module a string property with the name
|
2009-05-20 02:39:52 +04:00
|
|
|
.Ar var
|
2008-11-12 15:35:50 +03:00
|
|
|
and string value
|
2009-05-20 02:39:52 +04:00
|
|
|
.Ar string .
|
1999-03-10 08:14:51 +03:00
|
|
|
.El
|
1993-06-08 07:07:11 +04:00
|
|
|
.Sh DIAGNOSTICS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility exits with a status of 0 on success
|
|
|
|
and with a nonzero status if an error occurs.
|
|
|
|
.Sh SEE ALSO
|
1994-09-18 23:53:44 +04:00
|
|
|
.Xr modstat 8 ,
|
|
|
|
.Xr modunload 8
|
1993-06-08 07:07:11 +04:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
command was designed to be similar in functionality
|
|
|
|
to the corresponding command in
|
|
|
|
.Tn "SunOS 4.1.3" .
|