anolis-cloud-kernel/drivers/gpu
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
..
drm vfio: Rename vfio_device_put() and vfio_device_try_get() 2025-07-02 03:31:13 +00:00
host1x gpu: host1x: Fix a memory leak in 'host1x_remove()' 2022-04-08 14:40:18 +02:00
ipu-v3 gpu: ipu-v3: Fix dev_dbg frequency output 2022-04-20 09:23:22 +02:00
trace
vga
Makefile