[PATCH] Make hotplugging non-recursive.

Rob Taylor rob.taylor at codethink.co.uk
Wed Jan 31 17:23:22 PST 2007


2nd time lucky..

This adds a notify callback for when hald_runner has finished calling a
callout.
For linux, we install hotplug_event_process_queue as the notify, and
modify hotplug_event_process_queue to iterate the queue. All recrursive
calls to hotplug_event_process_queue are removed. This results in
massive stack and a not inconsiquential heap savings.
---
 hald/hald_runner.c    |   17 ++++++++++++++++-
 hald/hald_runner.h    |    3 +++
 hald/linux/blockdev.c |    2 --
 hald/linux/hotplug.c  |   38 ++++++++++++++++++--------------------
 hald/linux/osspec.c   |    5 ++---
 5 files changed, 39 insertions(+), 26 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eb166fe59ecc83dde48e2f4ff5228830fbcfa1a4.diff
Type: text/x-patch
Size: 5156 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20070201/badc8464/eb166fe59ecc83dde48e2f4ff5228830fbcfa1a4-0001.bin


More information about the hal mailing list