Files
moby/daemon/devices_nonlinux.go
Paweł Gronowski 13a8626eeb daemon/devices: Turn RegisterGPUDeviceDrivers into func
Change GPU device driver registration from init-time function assignment
to direct function exports.

This removes the init() function and global function variable pattern in
favor of a more explicit approach.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-03-04 18:22:18 +01:00

9 lines
203 B
Go

//go:build !linux
package daemon
import "tags.cncf.io/container-device-interface/pkg/cdi"
// RegisterGPUDeviceDrivers is a no-op on non-Linux platforms.
func RegisterGPUDeviceDrivers(_ *cdi.Cache) {}