1 Index: linux-2.6.23-rc6/lib/kobject_uevent.c
2 ===================================================================
3 --- linux-2.6.23-rc6.orig/lib/kobject_uevent.c 2007-09-21 16:23:52.000000000 +0800
4 +++ linux-2.6.23-rc6/lib/kobject_uevent.c 2007-09-21 16:24:07.000000000 +0800
6 char uevent_helper[UEVENT_HELPER_PATH_LEN] = "/sbin/hotplug";
7 static DEFINE_SPINLOCK(sequence_lock);
8 #if defined(CONFIG_NET)
9 -static struct sock *uevent_sock;
10 +struct sock *uevent_sock = NULL;
11 +EXPORT_SYMBOL_GPL(uevent_sock);
14 +u64 uevent_next_seqnum(void)
18 + spin_lock(&sequence_lock);
19 + seq = ++uevent_seqnum;
20 + spin_unlock(&sequence_lock);
24 +EXPORT_SYMBOL_GPL(uevent_next_seqnum);
27 * kobject_uevent_env - send an uevent with environmental data
32 /* we will send an event, request a new sequence number */
33 - spin_lock(&sequence_lock);
34 - seq = ++uevent_seqnum;
35 - spin_unlock(&sequence_lock);
36 + seq = uevent_next_seqnum();
37 sprintf(seq_buff, "SEQNUM=%llu", (unsigned long long)seq);
39 #if defined(CONFIG_NET)