Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Feb 2018 04:28:22 +0000 (UTC)
From:      Bryan Venteicher <bryanv@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r328917 - head/share/man/man9
Message-ID:  <201802060428.w164SMRj002358@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bryanv
Date: Tue Feb  6 04:28:21 2018
New Revision: 328917
URL: https://svnweb.freebsd.org/changeset/base/328917

Log:
  Correct structure name used in bus_map_resource(9) example
  
  Reviewed by:	jhb
  MFC after:	1 week
  Differential Revision:	https://reviews.freebsd.org/D14188

Modified:
  head/share/man/man9/bus_map_resource.9

Modified: head/share/man/man9/bus_map_resource.9
==============================================================================
--- head/share/man/man9/bus_map_resource.9	Tue Feb  6 04:16:00 2018	(r328916)
+++ head/share/man/man9/bus_map_resource.9	Tue Feb  6 04:28:21 2018	(r328917)
@@ -26,7 +26,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd May 20, 2016
+.Dd February 5, 2018
 .Dt BUS_MAP_RESOURCE 9
 .Os
 .Sh NAME
@@ -143,16 +143,16 @@ reads the first 32-bit word:
 .Bd -literal
 	struct resource *r;
 	struct resource_map map;
-	struct resource_map_args args;
+	struct resource_map_request req;
 	uint32_t val;
 	int rid;
 
 	rid = PCIR_BAR(0);
 	r = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE |
 	    RF_UNMAPPED);
-	resource_init_map_request(&args);
-	args.memattr = VM_MEMATTR_WRITE_COMBINING;
-	bus_map_resource(dev, SYS_RES_MEMORY, r, &args, &map);
+	resource_init_map_request(&req);
+	req.memattr = VM_MEMATTR_WRITE_COMBINING;
+	bus_map_resource(dev, SYS_RES_MEMORY, r, &req, &map);
 	val = bus_read_4(&map, 0);
 .Ed
 .Sh SEE ALSO



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802060428.w164SMRj002358>