diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-21 11:30:46 -0400 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-21 11:30:46 -0400 |
| commit | 79d86fe350eaa520cda91b3832d30b085d9bcd6f (patch) | |
| tree | f655089c62cff430c6bc1e34e8c14b4ccab41c0c /kernel/include/nv-hypervisor.h | |
| parent | ad1f7a6a3cd262cc084673ec5cf0c561328ec7c7 (diff) | |
| download | open-iov-79d86fe350eaa520cda91b3832d30b085d9bcd6f.tar.gz open-iov-79d86fe350eaa520cda91b3832d30b085d9bcd6f.zip | |
kernel: Add get_available mdev callback (fix leaked available_instances)
The mdev core's shared parent->available_instances counter leaks whenever
an mdev remove path fails to complete (as happened during the now-fixed
remove crash): creates then fail with -EUSERS while sysfs reports 0
available instances with zero mdevs present.
Implement mdev_driver.get_available to compute availability from the
driver's own authoritative device list instead of the core counter.
Handles the 'nvidia-' prefixed sysfs type names when looking up per-type
max_instances (falls back to 1).
Diffstat (limited to 'kernel/include/nv-hypervisor.h')
0 files changed, 0 insertions, 0 deletions
