Skip to content

Conversation

@christoph-zededa
Copy link

  1. expose uevent path to the consumer of the library
  2. allow filtering usb devices by uevent path this is useful when listening to uevents and using ghw library to get the usb device

1. expose uevent path to the consumer of the library
2. allow filtering usb devices by uevent path
   this is useful when listening to uevents and
   using ghw library to get the usb device

Signed-off-by: Christoph Ostarek <christoph@zededa.com>
}
}

func WithUSBUeventPath(path string) Option {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see how and where this is used...

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also it seems weird to add this as an option for all device classes

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is used here: https://github.com/christoph-zededa/eve/blob/usbmanager_use_ghw/pkg/pillar/cmd/usbmanager/scanusb.go#L97

Also it seems weird to add this as an option for all device classes

I thought the same, but then I saw https://github.com/zededa/ghw/blob/main/pkg/option/option.go#L153

@europaul
Copy link

Does it maybe make sense to upstream it right away?

@christoph-zededa
Copy link
Author

Does it maybe make sense to upstream it right away?

I think some discussion will be necessary, so it might take a while until it is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants