Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Oct 2018 21:18:52 +0000 (UTC)
From:      Yuri Pankov <yuripv@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339318 - head/share/man/man9
Message-ID:  <201810112118.w9BLIqEa033423@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuripv
Date: Thu Oct 11 21:18:51 2018
New Revision: 339318
URL: https://svnweb.freebsd.org/changeset/base/339318

Log:
  MODULE_PNP_INFO(9): catch up with r338948, and remove the element size
  parameter from the man page.
  
  Reviewed by:	cem, imp
  Approved by:	re (gjb), kib (mentor)
  Differential Revision:	https://reviews.freebsd.org/D17436

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	Thu Oct 11 20:44:25 2018	(r339317)
+++ head/share/man/man9/MODULE_PNP_INFO.9	Thu Oct 11 21:18:51 2018	(r339318)
@@ -24,7 +24,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd October 2, 2018
+.Dd October 5, 2018
 .Dt MODULE_PNP_INFO 9
 .Os
 .Sh NAME
@@ -38,7 +38,6 @@
 .Fa "bus"
 .Fa "module"
 .Fa "void *table"
-.Fa "size_t entry_len"
 .Fa "size_t num_entries"
 .Fc
 .\"
@@ -143,11 +142,6 @@ parameter points to the device matching data with entr
 .Fa descriptor_string .
 .Pp
 The
-.Fa entry_len
-parameter is the size of each table entry, i.e.,
-.Ql sizeof(table[0]) .
-.Pp
-The
 .Fa num_entries
 parameter is the number of entries in the table, i.e.,
 .Ql nitems(table) .
@@ -178,7 +172,7 @@ static struct my_pciids {
 };
 
 MODULE_PNP_INFO("W32:vendor/device;D:#", pci, my_driver, my_ids,
-    sizeof(my_ids[0]), nitems(my_ids));
+    nitems(my_ids));
 .Ed
 .It Sy Example 2\&: No Using T for common vendor value
 .Pp
@@ -198,7 +192,7 @@ static struct my_pciids {
 };
 
 MODULE_PNP_INFO("U16:device;D:#;T:vendor=0x1234", pci, my_driver,
-    my_ids, sizeof(my_ids[0]), nitems(my_ids));
+    my_ids, nitems(my_ids));
 .Ed
 .El
 .\"



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