summaryrefslogtreecommitdiffstats
path: root/share/man/man9/bus_release_resource.9
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2001-02-15 12:21:44 +0000
committerbde <bde@FreeBSD.org>2001-02-15 12:21:44 +0000
commitf8f709338a89ee752152e560cbf737d015c335ef (patch)
treed733f6cf75c9ba3c1ce980e0f03a6cec93151e6d /share/man/man9/bus_release_resource.9
parent096a6c0dc7c0175593c4d502473cb3f0d13578c5 (diff)
downloadFreeBSD-src-f8f709338a89ee752152e560cbf737d015c335ef.zip
FreeBSD-src-f8f709338a89ee752152e560cbf737d015c335ef.tar.gz
Fixed missing and wrong includes in synopsis. The prerequisites for
using bus_alloc_resource(), etc., are especially unobvious, but were especially wrong (<sys/resource.h> has nothing to do with the resources documented here...). Order and format the includes as correctly as possible (a layering violation makes <machine/bus.h> a prerequisite for <sys/rman.h>).
Diffstat (limited to 'share/man/man9/bus_release_resource.9')
-rw-r--r--share/man/man9/bus_release_resource.94
1 files changed, 3 insertions, 1 deletions
diff --git a/share/man/man9/bus_release_resource.9 b/share/man/man9/bus_release_resource.9
index b1178ed..dfeba7f 100644
--- a/share/man/man9/bus_release_resource.9
+++ b/share/man/man9/bus_release_resource.9
@@ -37,8 +37,10 @@
.Sh SYNOPSIS
.Fd #include <sys/param.h>
.Fd #include <sys/bus.h>
+.Pp
+.Fd #include <machine/bus.h>
.Fd #include <sys/rman.h>
-.Fd #include <sys/resource.h>
+.Fd #include <machine/resource.h>
.Ft int
.Fn bus_release_resource "device_t dev" "int type" "int rid" "struct resource *r"
.Sh DESCRIPTION
OpenPOWER on IntegriCloud