a2c935f26bc4e4cb5141dd1515d0004dced846f6
[openwrt.git] / target / linux / generic / patches-4.3 / 910-kobject_uevent.patch
1 --- a/lib/kobject_uevent.c
2 +++ b/lib/kobject_uevent.c
3 @@ -52,6 +52,18 @@ static const char *kobject_actions[] = {
4         [KOBJ_OFFLINE] =        "offline",
5  };
6  
7 +u64 uevent_next_seqnum(void)
8 +{
9 +       u64 seq;
10 +
11 +       mutex_lock(&uevent_sock_mutex);
12 +       seq = ++uevent_seqnum;
13 +       mutex_unlock(&uevent_sock_mutex);
14 +
15 +       return seq;
16 +}
17 +EXPORT_SYMBOL_GPL(uevent_next_seqnum);
18 +
19  /**
20   * kobject_action_type - translate action string to numeric type
21   *