freebsd-skq/share/man
John Baldwin 10012d5309 Reliably return PCI_GETCONF_LAST_DEVICE from PCIOCGETCONF.
Previously the loop in PCIIOCGETCONF would terminate as soon as it
found enough matches.  Now it will continue iterating through the
PCI device list and only terminate if it finds another matching device
for which it has no room to store a conf structure.  This means that
PCI_GETCONF_LAST_DEVICE is reliably returned when the number of
matching devices is equal to the number of slots in the matches
buffer.  For example, if a program requests the conf structure for a
single PCI function with a specified domain/bus/slot/function it will
now get PCI_GETCONF_LAST_DEVICE instead of PCI_GETCONF_MORE_DEVS.

While here, simplify the loop conditional a bit more by explicitly
breaking out of the loop if copyout() fails and removing a redundant
i < pci_numdevs check.

Reviewed by:	vangyzen, imp
MFC after:	1 month
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D7445
2016-08-09 17:57:11 +00:00
..
man1 Separate manual pages into their own package. 2016-01-21 16:36:33 +00:00
man3 Re-correct the documentation for the 'type' parameter of the _SWAP 2016-08-06 19:12:23 +00:00
man4 Reliably return PCI_GETCONF_LAST_DEVICE from PCIOCGETCONF. 2016-08-09 17:57:11 +00:00
man5 Regenerate src.conf.5 after r303394 2016-07-28 13:35:46 +00:00
man6 Separate manual pages into their own package. 2016-01-21 16:36:33 +00:00
man7 Remove spurious but harmless double-quote. 2016-07-21 16:58:53 +00:00
man8 Last few instances of "sentence not on new line". 2016-06-08 09:36:07 +00:00
man9 Remove lockmgr_waiters(9) and BUF_LOCKWAITERS(9); they were not used 2016-08-05 13:53:28 +00:00
Makefile Add more SUBDIR_PARALLEL. 2015-10-15 22:55:08 +00:00