1997-02-28 10:09:09 +00:00
|
|
|
.\" Copyright (c) [year] [your name]
|
|
|
|
.\" All rights reserved.
|
1997-01-02 20:37:25 +00: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.
|
|
|
|
.\"
|
1997-02-28 10:09:09 +00:00
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
1997-01-02 20:37:25 +00:00
|
|
|
.\" 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 OR CONTRIBUTORS 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.
|
|
|
|
.\"
|
1999-08-28 23:32:12 +00:00
|
|
|
.\" $FreeBSD$
|
1997-01-02 20:37:25 +00:00
|
|
|
.\"
|
1997-01-09 06:32:22 +00:00
|
|
|
.\" Note: The date here should be updated whenever a non-trivial
|
|
|
|
.\" change is made to the manual page.
|
2015-09-30 12:40:51 +00:00
|
|
|
.Dd July 31, 2015
|
1997-01-02 20:37:25 +00:00
|
|
|
.Dt EXAMPLE 4 i386
|
2001-04-23 15:15:49 +00:00
|
|
|
.Os
|
1997-01-02 20:37:25 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm example
|
2001-07-18 10:04:34 +00:00
|
|
|
.Nd "example device driver manual page"
|
1997-01-02 20:37:25 +00:00
|
|
|
.Sh SYNOPSIS
|
2015-09-30 12:40:51 +00:00
|
|
|
To compile the driver into the kernel,
|
2006-09-27 21:28:44 +00:00
|
|
|
place the following lines in the
|
|
|
|
kernel configuration file:
|
2006-04-01 10:10:36 +00:00
|
|
|
.Bd -ragged -offset indent
|
2001-07-18 10:04:34 +00:00
|
|
|
.Cd "device example"
|
|
|
|
.Cd "options EXAMPLE_DEBUG"
|
2006-04-01 10:10:36 +00:00
|
|
|
.Ed
|
|
|
|
.Pp
|
2015-09-30 12:40:51 +00:00
|
|
|
Alternatively, to load the driver as a
|
2006-09-27 21:28:44 +00:00
|
|
|
module at boot time, place the following line in
|
|
|
|
.Xr loader.conf 5 :
|
2006-04-01 10:10:36 +00:00
|
|
|
.Bd -literal -offset indent
|
|
|
|
example_load="YES"
|
|
|
|
.Ed
|
1997-01-02 20:37:25 +00:00
|
|
|
.Sh DESCRIPTION
|
2001-07-18 08:51:04 +00:00
|
|
|
This is an example device driver manual page for the
|
2000-11-20 16:52:27 +00:00
|
|
|
.Nm
|
2001-07-18 08:51:04 +00:00
|
|
|
driver.
|
|
|
|
It is intended that this example can be used as a template
|
|
|
|
when writing a new manual page.
|
1997-01-02 20:37:25 +00:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver supports the following ioctls:
|
2001-07-18 10:04:34 +00:00
|
|
|
.Bl -tag -width ".Dv EIOCNULL"
|
1997-01-02 20:37:25 +00:00
|
|
|
.It Dv EIOCEX
|
|
|
|
Example ioctl.
|
|
|
|
.It Dv EIOCNULL
|
|
|
|
Example ioctl.
|
|
|
|
.El
|
2001-04-05 09:37:55 +00:00
|
|
|
.Pp
|
|
|
|
If the kernel is compiled with the
|
|
|
|
.Dv EXAMPLE_DEBUG
|
|
|
|
option, then additional debugging messages will be displayed.
|
2004-08-18 07:05:35 +00:00
|
|
|
.Sh HARDWARE
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver supports the following example hardware:
|
|
|
|
.Pp
|
|
|
|
.Bl -bullet -compact
|
|
|
|
.It
|
|
|
|
Example device 4201
|
|
|
|
.It
|
|
|
|
Example device 4202
|
|
|
|
.El
|
1997-01-02 20:37:25 +00:00
|
|
|
.Sh FILES
|
2001-07-18 10:04:34 +00:00
|
|
|
.Bl -tag -width ".Pa /dev/null" -compact
|
1997-01-02 20:37:25 +00:00
|
|
|
.It Pa /dev/null
|
|
|
|
Example of a file in the
|
|
|
|
.Sx FILES
|
|
|
|
section.
|
|
|
|
.El
|
|
|
|
.Sh DIAGNOSTICS
|
1997-01-09 06:32:22 +00:00
|
|
|
.Bl -diag
|
2001-07-18 10:04:34 +00:00
|
|
|
.It "example%d: example diagnostic message."
|
1997-01-09 06:32:22 +00:00
|
|
|
An example of a diagnostic message.
|
2001-07-18 10:04:34 +00:00
|
|
|
.It "example%d: another example diagnostic message."
|
1997-01-09 06:32:22 +00:00
|
|
|
Self explanatory.
|
|
|
|
.El
|
1999-12-08 22:15:09 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr example 1 ,
|
|
|
|
.Xr example 3 ,
|
2005-01-12 20:56:15 +00:00
|
|
|
.Xr mdoc 7 ,
|
|
|
|
.Xr example 9
|
1997-01-02 20:37:25 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
2006-05-20 09:49:05 +00:00
|
|
|
device driver first appeared in
|
1997-02-17 16:39:53 +00:00
|
|
|
.Fx 2.2 .
|
1997-01-09 06:32:22 +00:00
|
|
|
.Pp
|
|
|
|
Some other common
|
|
|
|
.Sx HISTORY
|
|
|
|
section examples are:
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
manual page example first appeared in
|
|
|
|
.Bx 4.4 .
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
manual page example first appeared in
|
|
|
|
.At v6 .
|
1998-04-01 06:24:20 +00:00
|
|
|
.Sh AUTHORS
|
2005-05-07 11:02:34 +00:00
|
|
|
This manual page was written by
|
2014-06-20 09:40:43 +00:00
|
|
|
.An Mike Pritchard Aq Mt mpp@FreeBSD.org .
|
1997-01-02 20:37:25 +00:00
|
|
|
.Sh BUGS
|
|
|
|
The actual code for this device driver is vaporware.
|