summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRaghavendra Rao Ananta <rananta@google.com>2026-05-06 00:28:37 +0300
committerAlex Williamson <alex@shazbot.org>2026-05-20 20:54:10 +0300
commit3152e7f457dece42b13423c45a371ee686074fac (patch)
tree33549180d4ceda16e3894cc0d18baa1c9a3e79bb /include/linux
parent20face8c75ffb3dd7e8d6743498b47403e57ebda (diff)
downloadlinux-3152e7f457dece42b13423c45a371ee686074fac.tar.xz
vfio: selftests: Add helpers to alloc/free vfio_pci_device
Add a helper, vfio_pci_device_alloc(), to allocate 'struct vfio_pci_device'. The subsequent test patch will utilize this to get the struct with very minimal initialization done. Internally, let vfio_pci_device_init() also make use of this function and later do the full initialization. Symmetrically, add a free variant, vfio_pci_device_free(), to be used in a similar fashion. No functional change intended. Signed-off-by: Raghavendra Rao Ananta <rananta@google.com> Reviewed-by: David Matlack <dmatlack@google.com> Reviewed-by: Vipin Sharma <vipinsh@google.com> Tested-by: David Matlack <dmatlack@google.com> Link: https://lore.kernel.org/r/20260505212838.1698034-8-rananta@google.com Signed-off-by: Alex Williamson <alex@shazbot.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions