diff options
| author | Raghavendra Rao Ananta <rananta@google.com> | 2026-05-05 21:28:37 +0000 |
|---|---|---|
| committer | Alex Williamson <alex@shazbot.org> | 2026-05-20 11:54:10 -0600 |
| commit | 3152e7f457dece42b13423c45a371ee686074fac (patch) | |
| tree | 33549180d4ceda16e3894cc0d18baa1c9a3e79bb /drivers/phy/eswin/git@git.tavy.me:linux.git | |
| parent | 20face8c75ffb3dd7e8d6743498b47403e57ebda (diff) | |
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 'drivers/phy/eswin/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
