2002-10-02 15:15:18 +04:00
|
|
|
.\" $NetBSD: lkm.conf.5,v 1.7 2002/10/02 11:15:18 wiz Exp $
|
1997-01-05 14:50:12 +03:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1996 Matthew R. Green
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" 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.
|
1997-10-10 09:39:47 +04:00
|
|
|
.\" 3. The name of the author may not be used to endorse or promote products
|
1997-01-05 14:50:12 +03:00
|
|
|
.\" derived from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" 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.
|
|
|
|
.\"
|
2000-11-08 04:37:52 +03:00
|
|
|
.Dd November 8, 2000
|
1997-01-05 14:50:12 +03:00
|
|
|
.Dt LKM.CONF 5
|
1999-03-17 23:19:44 +03:00
|
|
|
.Os
|
1997-01-05 14:50:12 +03:00
|
|
|
.Sh NAME
|
|
|
|
.Nm lkm.conf
|
2001-06-05 16:38:32 +04:00
|
|
|
.Nd loadable kernel module configuration file
|
1997-01-05 14:50:12 +03:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
file specifies loadable kernel modules, see
|
|
|
|
.Xr lkm 4 ,
|
|
|
|
that are to be loaded a boot time.
|
2001-06-05 16:38:32 +04:00
|
|
|
The
|
1997-01-05 14:50:12 +03:00
|
|
|
.Nm
|
2001-06-05 16:38:32 +04:00
|
|
|
file is processed by
|
1997-01-05 14:50:12 +03:00
|
|
|
.Pa /etc/rc.lkm
|
|
|
|
at system boot time, if it exists.
|
|
|
|
.Pp
|
|
|
|
Each line of the file is of the form
|
2000-11-08 04:37:52 +03:00
|
|
|
.Dl path options entry postinstall output when
|
1997-01-05 14:50:12 +03:00
|
|
|
.Pp
|
2001-06-05 16:38:32 +04:00
|
|
|
Except for the
|
1997-01-05 14:50:12 +03:00
|
|
|
.Em path ,
|
|
|
|
all other fields can be "-" to indicate empty.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Em path
|
|
|
|
is either an absolute pathname, or the name of a file in
|
|
|
|
.Pa /lkm
|
|
|
|
or
|
|
|
|
.Pa /usr/lkm
|
|
|
|
that is the LKM to be loaded.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Em options
|
2001-06-05 16:38:32 +04:00
|
|
|
are some combination of the -d and -v options to
|
1997-01-05 14:50:12 +03:00
|
|
|
.Xr modload 8 .
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Em entry
|
2002-10-02 15:15:18 +04:00
|
|
|
is the C symbol to call to initialize the module, defaulting to
|
1997-01-05 14:50:12 +03:00
|
|
|
.Fn xxxinit .
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Em postinstall
|
|
|
|
script is run after the LKM is installed.
|
|
|
|
.Pp
|
|
|
|
The output of the
|
|
|
|
.Xr ld 1
|
|
|
|
command is stored in
|
|
|
|
.Em output .
|
1997-07-14 15:56:31 +04:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Em when
|
|
|
|
field specifies at which time in the startup process the LKM is loaded.
|
|
|
|
There are three predefined values which correspond to three points in
|
|
|
|
the processing of the system startup script
|
|
|
|
.Pa /etc/rc :
|
|
|
|
.Bl -tag -width XXX
|
2001-06-05 16:38:32 +04:00
|
|
|
.It BEFORENET
|
|
|
|
Before networking is started. This works only if the
|
1997-07-14 15:56:31 +04:00
|
|
|
.Pa /usr
|
2002-10-02 15:15:18 +04:00
|
|
|
file system can already be mounted at this time.
|
2001-06-05 16:38:32 +04:00
|
|
|
.It BEFOREMOUNT
|
2002-10-02 15:15:18 +04:00
|
|
|
Before all file systems listed in
|
1997-07-14 15:56:31 +04:00
|
|
|
.Pa /etc/fstab
|
|
|
|
are mounted (the
|
|
|
|
.Pa /usr
|
|
|
|
and
|
|
|
|
.Pa /var
|
2002-10-02 15:15:18 +04:00
|
|
|
file systems are already present).
|
2001-06-05 16:38:32 +04:00
|
|
|
.It AFTERMOUNT
|
2002-10-02 15:15:18 +04:00
|
|
|
After all file systems are mounted.
|
1997-07-14 15:56:31 +04:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
A "-" entry defaults to BEFORENET.
|
1997-01-05 14:50:12 +03:00
|
|
|
.Sh FILES
|
2000-11-08 04:37:52 +03:00
|
|
|
.Pa /etc/lkm.conf ,
|
|
|
|
.Pa /etc/rc ,
|
|
|
|
.Pa /etc/rc.d/lkm ,
|
1997-01-05 14:50:12 +03:00
|
|
|
.Pa /etc/rc.lkm
|
|
|
|
.Sh SEE ALSO
|
2001-06-05 16:38:32 +04:00
|
|
|
.Xr lkm 4 ,
|
|
|
|
.Xr modload 8
|
1997-01-05 14:50:12 +03:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
file appeared in
|
|
|
|
.Nx 1.3 .
|