code: func makeDevices(opts *kubecontainer.RunContainerOptions) []*runtimeapi.Device {
  	devices := make([]*runtimeapi.Device, len(opts.Devices))
  
  	for idx := range opts.Devices {
  		device := opts.Devices[idx]
  		devices[idx] = &runtimeapi.Device{
  			HostPath:      device.PathOnHost,
  			ContainerPath: device.PathInContainer,
  			Permissions:   device.Permissions,
  		}
  	}
  
  	return devices
  }
docs: // makeDevices generates container devices for kubelet runtime v1.