Module Name:    src
Committed By:   knakahara
Date:           Tue Jan 12 05:08:50 UTC 2021

Modified Files:
        src/share/man/man9: pci_msi.9

Log Message:
Fix PR kern/55920 .  Add pci_msi_count() and pci_msix_count() description.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/share/man/man9/pci_msi.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man9/pci_msi.9
diff -u src/share/man/man9/pci_msi.9:1.17 src/share/man/man9/pci_msi.9:1.18
--- src/share/man/man9/pci_msi.9:1.17	Tue Nov 27 20:13:43 2018
+++ src/share/man/man9/pci_msi.9	Tue Jan 12 05:08:50 2021
@@ -1,4 +1,4 @@
-.\" $NetBSD: pci_msi.9,v 1.17 2018/11/27 20:13:43 jdolecek Exp $
+.\" $NetBSD: pci_msi.9,v 1.18 2021/01/12 05:08:50 knakahara Exp $
 .\"
 .\" Copyright (c) 2015 Internet Initiative Japan Inc.
 .\" All rights reserved.
@@ -24,7 +24,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd November 27, 2018
+.Dd January 12, 2021
 .Dt PCI_MSI 9
 .Os
 .Sh NAME
@@ -96,6 +96,14 @@ which contains, among other things, info
 of the device in the PCI bus topology sufficient to allow interrupts
 from the device to be handled.
 .Pp
+.Fn pci_msi_count
+returns the max number of the device's MSI.
+If the device can not use MSI,
+.Fn pci_msi_count
+returns zero.
+.Fn pci_msix_count
+works in the same manner for MSI-X.
+.Pp
 If a driver wishes to establish an MSI handler for the device,
 it should pass the
 .Ft struct pci_attach_args *

Reply via email to