code: func infinibandDevices(infinibandPath string) ([]string, error) {
  	devices, err := filepath.Glob(filepath.Join(infinibandPath, "/*"))
  	if err != nil {
  		return nil, err
  	}
  
  	if len(devices) < 1 {
  		log.Debugf("Unable to detect InfiniBand devices")
  		err = errInfinibandNoDevicesFound
  		return nil, err
  	}
  
  	// Extract just the filenames which equate to the device names.
  	for i, device := range devices {
  		devices[i] = filepath.Base(device)
  	}
  
  	return devices, nil
  }
docs: // infinibandDevices retrieves a list of InfiniBand devices.