anolis-cloud-kernel/drivers/vfio
Kevin Tian e19c0b65fe vfio: Rename vfio_device_put() and vfio_device_try_get()
ANBZ: #10925

commit 4a725b8de4 upstream.

With the addition of vfio_put_device() now the names become confusing.

vfio_put_device() is clear from object life cycle p.o.v given kref.

vfio_device_put()/vfio_device_try_get() are helpers for tracking
users on a registered device.

Now rename them:

 - vfio_device_put() -> vfio_device_put_registration()
 - vfio_device_try_get() -> vfio_device_try_get_registration()

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Link:
https://lore.kernel.org/r/20220921104401.38898-15-kevin.tian@intel.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Qinyun Tan <qinyuntan@linux.alibaba.com>
Reviewed-by: Guanghui Feng <guanghuifeng@linux.alibaba.com>
Link: https://gitee.com/anolis/cloud-kernel/pulls/5474
2025-07-02 03:31:13 +00:00
..
fsl-mc vfio: Use kconfig if XX/endif blocks instead of repeating 'depends on' 2024-11-12 13:28:27 +00:00
mdev vfio: Define device migration protocol v2 2024-11-12 13:28:27 +00:00
pci vfio: Rename vfio_device_put() and vfio_device_try_get() 2025-07-02 03:31:13 +00:00
platform vfio: Use kconfig if XX/endif blocks instead of repeating 'depends on' 2024-11-12 13:28:27 +00:00
Kconfig anolis: sw_64: update kconfig for sw arch 2025-02-20 15:44:52 +08:00
Makefile vfio: Add an IOVA bitmap support 2024-11-12 13:28:27 +00:00
iova_bitmap.c iommufd/iova_bitmap: Fix shift-out-of-bounds in iova_bitmap_offset_to_index() 2025-03-27 03:33:12 +00:00
vfio_iommu_spapr_tce.c vfio/spapr_tce: convert get_user_pages() --> pin_user_pages() 2020-07-27 13:43:38 -06:00
vfio_iommu_type1.c anolis: sw64: fix bad address error for vfio 2025-06-05 06:59:14 +00:00
vfio_main.c vfio: Rename vfio_device_put() and vfio_device_try_get() 2025-07-02 03:31:13 +00:00
vfio_spapr_eeh.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
virqfd.c vfio: Introduce interface to flush virqfd inject workqueue 2025-03-26 08:41:52 +00:00