1 --- a/lib/kobject_uevent.c
2 +++ b/lib/kobject_uevent.c
4 char uevent_helper[UEVENT_HELPER_PATH_LEN] = "/sbin/hotplug";
5 static DEFINE_SPINLOCK(sequence_lock);
6 #if defined(CONFIG_NET)
7 -static struct sock *uevent_sock;
8 +struct sock *uevent_sock = NULL;
9 +EXPORT_SYMBOL_GPL(uevent_sock);
12 +u64 uevent_next_seqnum(void)
16 + spin_lock(&sequence_lock);
17 + seq = ++uevent_seqnum;
18 + spin_unlock(&sequence_lock);
22 +EXPORT_SYMBOL_GPL(uevent_next_seqnum);
25 * kobject_uevent_env - send an uevent with environmental data
30 /* we will send an event, request a new sequence number */
31 - spin_lock(&sequence_lock);
32 - seq = ++uevent_seqnum;
33 - spin_unlock(&sequence_lock);
34 + seq = uevent_next_seqnum();
35 sprintf(seq_buff, "SEQNUM=%llu", (unsigned long long)seq);
37 #if defined(CONFIG_NET)