We don't use the "pseudo-device" configuration option any longer,
so update the example to use the correct definition. Add an example for documenting kernel compile options, along with a small example of how to reference them in the main text of the man page (I.e. the .Dv macro). Inspired-by: a brief exchange I saw in in the commit messages mail
This commit is contained in:
parent
5b73c24bc3
commit
d86e393136
@ -39,7 +39,8 @@
|
||||
.Nm example
|
||||
.Nd example device driver manual page
|
||||
.Sh SYNOPSIS
|
||||
.Cd pseudo-device example
|
||||
.Cd device example
|
||||
.Cd options EXAMPLE_DEBUG
|
||||
.Sh DESCRIPTION
|
||||
This is an example device driver manual page for
|
||||
the
|
||||
@ -57,6 +58,10 @@ Example ioctl.
|
||||
.It Dv EIOCNULL
|
||||
Example ioctl.
|
||||
.El
|
||||
.Pp
|
||||
If the kernel is compiled with the
|
||||
.Dv EXAMPLE_DEBUG
|
||||
option, then additional debugging messages will be displayed.
|
||||
.Sh FILES
|
||||
.Bl -tag -width /dev/null -compact
|
||||
.It Pa /dev/null
|
||||
|
Loading…
x
Reference in New Issue
Block a user