On 06/18/2012 10:14 AM, Kejun Zhou wrote:
On 18 June 2012 16:07, Daniel Lezcano daniel.lezcano@linaro.org wrote:
On 06/18/2012 08:43 AM, Kejun Zhou wrote:
Hi Daniel,
I saw udevadm is used in pm-qa/cpuhotplug/cpuhotplug_07.sh
40 41 # damn ! udevadm is buffering the output, we have to use a temp
file
42 # to retrieve the output 43 rm -f $TMPFILE 44 udevadm monitor --kernel --subsystem-match=cpu > $TMPFILE & 45 pid=$
Integrating udevadm to Android system will make util-linux and udev being involved in Android system. Is there a substitute of udevadm?
I don't think so. You could write a simple C program listening on the udev netlink socket, add it to the testsuite and remove udevadm.
There is not udev in Android system. If we use the udev, we need to modify
a lot of Android system.
What I meant is the kernel should send events through a netlink socket. Udev use this socket to detect hotplug. I meant you can write a simple program to read this socket and catch cpu hotplug event.
-- http://www.linaro.org/ Linaro.org │ Open source software for ARM SoCs
Follow Linaro: http://www.facebook.com/pages/Linaro Facebook | http://twitter.com/#!/linaroorg Twitter | http://www.linaro.org/linaro-blog/ Blog