Skip to content

add auto refresh when usb device plug/unplug #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

chopin1998
Copy link

This PR adds auto refresh of the USB device tree when devices are plugged/unplugged , using libudev

  • Tested on debian(sid, 6.14.8)
  • Added libudev dependency in configure.ac/ makefile.am

plz review and let me know if any changes needed.

@chopin1998
Copy link
Author

sorry..... i'll fix them soon, and another question which do you like more: udev or inotify ?

@gregkh
Copy link
Owner

gregkh commented Jun 19, 2025

fanotify/inotify is probably better as that removes the dependency requirement.

@chopin1998
Copy link
Author

ok, i'll following style and change to inotify later

@chopin1998 chopin1998 requested a review from gregkh June 21, 2025 14:35
@chopin1998
Copy link
Author

pushed, let me know if there are any issues..

@gregkh
Copy link
Owner

gregkh commented Jun 24, 2025

This should all be just one commit, don't break things in order to fix them up in a follow-on patch please, that's just unneeded work on your side and makes it harder to look at the end result on the reviewer's side.

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