[PATCH] switch to u64 SEQNUM and keep ACTION as a string

Kay Sievers kay.sievers at vrfy.org
Mon Sep 13 18:29:56 PDT 2004


Here I change the HAL hotplug handling to better match the kernel.

The next kernel version will have a u64 hotplug sequence number starting
at 1. Switch HAL to use unsigned 64bit int and adapt the logic not to
rely on negative numbers. We use the 0 now to indicate a unset SEQNUM. 

We also can't be sure, that an ACTION != "add" is everytime a "remove"
event, change that to pass the action string around instead of a flag.

David, please have a look, if the hotplug handling is still working as
expected.

Thanks,
Kay

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-seqnum64-01.patch
Type: text/x-patch
Size: 15550 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20040914/7e6aeb90/hal-seqnum64-01.bin
-------------- next part --------------
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal


More information about the Hal mailing list