From: Richard <richard_siegfried@systemli.org>
To: kernelnewbies <kernelnewbies@kernelnewbies.org>
Subject: Watching for new files/symlinks/devices in sysfs (possible? which syscall?)
Date: Tue, 13 Jun 2023 23:31:41 +0200 [thread overview]
Message-ID: <8e4d3659-65da-0eff-0826-8ba86bdfab19@systemli.org> (raw)
Hi,
is there a possibility, in sysfs, to watch for new symlinks (i.e.
devices) beeing added to /sys/bus/usb/devices (like with inotify for
normal directories)?
I know you can use select() (userspace) and sysfs_notify() (kernelspace)
for attributes , but is there something for folders and new devices (or
symlinks)?
Thanks,
-- Richard
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
next reply other threads:[~2023-06-13 21:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-13 21:31 Richard [this message]
2023-06-13 22:24 ` Watching for new files/symlinks/devices in sysfs (possible? which syscall?) Richard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8e4d3659-65da-0eff-0826-8ba86bdfab19@systemli.org \
--to=richard_siegfried@systemli.org \
--cc=kernelnewbies@kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox