Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit e87cab6

Browse files
lnxbuildGerrit - the friendly Code Review server
authored and
Gerrit - the friendly Code Review server
committed
Merge "netfilter:Notify user space on creating sysfs file" into LA.BR.1.2.9.1_1
2 parents e8f4a4a + 7643b41 commit e87cab6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

net/netfilter/xt_HARDIDLETIMER.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Netfilter module to trigger a timer when packet matches.
55
* After timer expires a kevent will be sent.
66
*
7-
* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
7+
* Copyright (c) 2014-2015, 2017 The Linux Foundation. All rights reserved.
88
*
99
* Copyright (C) 2004, 2010 Nokia Corporation
1010
*
@@ -187,6 +187,8 @@ static int hardidletimer_tg_create(struct hardidletimer_tg_info *info)
187187
pr_debug("couldn't add file to sysfs");
188188
goto out_free_attr;
189189
}
190+
/* notify userspace */
191+
kobject_uevent(hardidletimer_tg_kobj, KOBJ_ADD);
190192

191193
list_add(&info->timer->entry, &hardidletimer_tg_list);
192194

net/netfilter/xt_IDLETIMER.c

+2
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ static int idletimer_tg_create(struct idletimer_tg_info *info)
291291
pr_debug("couldn't add file to sysfs");
292292
goto out_free_attr;
293293
}
294+
/* notify userspace */
295+
kobject_uevent(idletimer_tg_kobj, KOBJ_ADD);
294296

295297
list_add(&info->timer->entry, &idletimer_tg_list);
296298

0 commit comments

Comments
 (0)