Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Mar 2018 17:12:10 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r331534 - head/share/man/man9
Message-ID:  <201803251712.w2PHCAf7071831@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sun Mar 25 17:12:09 2018
New Revision: 331534
URL: https://svnweb.freebsd.org/changeset/base/331534

Log:
  Note that MODULE_PNP_INFO has to come after a DRIVER_MODULE.

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

Modified: head/share/man/man9/MODULE_PNP_INFO.9
==============================================================================
--- head/share/man/man9/MODULE_PNP_INFO.9	Sun Mar 25 16:57:21 2018	(r331533)
+++ head/share/man/man9/MODULE_PNP_INFO.9	Sun Mar 25 17:12:09 2018	(r331534)
@@ -49,6 +49,9 @@ macro registers a
 .Fa table
 of device-identifying data for use by
 .Xr devmatch 8 .
+Since it is built off module marking macros, it must follow a
+.Xr DRIVER_MODULE 9
+line.
 .Pp
 The macro takes a
 .Fa descriptor_string
@@ -164,6 +167,7 @@ static struct my_pciids {
 	{ 0x12345678, "Foo bar" },
 	{ 0x9abcdef0, "Baz fizz" },
 };
+
 MODULE_PNP_INFO("W32:vendor/device", pci, my_driver, my_ids, sizeof(my_ids[0]),
     nitems(my_ids));
 .Ed
@@ -176,7 +180,7 @@ MODULE_PNP_INFO("W32:vendor/device", pci, my_driver, m
 The macro
 .Nm
 appeared in
-.Fx 12.0 .
+.Fx 11.0 .
 .Sh AUTHORS
 The PNP framework and
 .Xr devmatch 8



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