[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: busybox-uevent: 'settle' functionality?
From: Cameron Norman <camerontnorman () gmail ! com>
Date: 2018-06-26 5:16:07
Message-ID: CALZWFRKU0T2Gd_few_mB6Pg2YoVxPFHtti5JaBoWiUssFCn-rQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hello,
I am using the uevent applet, but I would like to take a different approach
than using `mdev -s` for coldplug device initialization. I can trigger
uevent's in /sys on boot, but I need a way to wait for the uevent applet to
finishing listening for those events and executing PROG. I was thinking
about using a lock file to accomplish this. The uevent applet would open a
lock file whenever it is processing events, and close it when the netlink
socket doesn't have any more events to read. After trigger the events in
/sys, I can just wait for the uevent applet to close the lock. Is this a
good approach? Where should I put the lock file? Would patches for this
type of functionality be welcome?
Thanks,
--
Cameron Nemo
[Attachment #5 (text/html)]
<div dir="ltr"><div>Hello,</div><div><br></div><div>I am using the uevent applet, but \
I would like to take a different approach than using `mdev -s` for coldplug device \
initialization. I can trigger uevent's in /sys on boot, but I need a way to wait \
for the uevent applet to finishing listening for those events and executing PROG. I \
was thinking about using a lock file to accomplish this. The uevent applet would open \
a lock file whenever it is processing events, and close it when the netlink socket \
doesn't have any more events to read. After trigger the events in /sys, I can \
just wait for the uevent applet to close the lock. Is this a good approach? Where \
should I put the lock file? Would patches for this type of functionality be \
welcome?<br></div><div><br></div><div>Thanks,</div><div>--</div><div>Cameron \
Nemo<br></div></div>
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic