Yi Liu d6b5c4c1b5 util/char_dev: Add open_cdev()
/dev/vfio/devices/vfioX may not exist. In that case it is still possible
to open /dev/char/$major:$minor instead. Add helper function to abstract
the cdev open.

Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
2023-12-19 19:03:38 +01:00
..
2023-05-30 17:37:26 +02:00
2023-12-19 19:03:38 +01:00
2023-08-31 19:47:43 +02:00
2023-09-07 20:32:11 -05:00
2023-08-31 19:47:43 +02:00
2023-12-19 19:03:38 +01:00
2023-08-31 19:47:43 +02:00
2023-10-17 15:20:53 +02:00
2023-08-31 19:47:43 +02:00
2023-11-15 12:06:05 +03:00
2023-08-31 19:47:43 +02:00
2023-11-03 09:20:31 +01:00