]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Centralize compat support for PCIOCGETCONF.
authorBrooks Davis <brooks@FreeBSD.org>
Thu, 27 Sep 2018 21:08:32 +0000 (21:08 +0000)
committerBrooks Davis <brooks@FreeBSD.org>
Thu, 27 Sep 2018 21:08:32 +0000 (21:08 +0000)
commitb7edb6fa77fc1ae8a5ff828b14121a5c8330a8a4
tree3dfdc2344a5df54afbec831c9841a49d332ff526
parent825eeb55f459bb9221351f45bea01f06ee7a3996
Centralize compat support for PCIOCGETCONF.

The pre-7.x compat for both native and 32-bit code was already in
pci_user.c. Use this infrastructure to add implement 32-bit support.
This is more correct as ioctl(2) commands only have meaning in the
context of a file descriptor.

Reviewed by: kib
Approved by: re (gjb)
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential revision: https://reviews.freebsd.org/D17324
sys/compat/freebsd32/freebsd32_ioctl.c
sys/compat/freebsd32/freebsd32_ioctl.h
sys/dev/pci/pci_user.c