Merge "netfilter:Notify user space on creating sysfs file"
This commit is contained in:
commit
c6e845ffe7
2 changed files with 5 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
* Netfilter module to trigger a timer when packet matches.
|
||||
* After timer expires a kevent will be sent.
|
||||
*
|
||||
* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2014-2015, 2017 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Copyright (C) 2004, 2010 Nokia Corporation
|
||||
*
|
||||
|
@ -187,6 +187,8 @@ static int hardidletimer_tg_create(struct hardidletimer_tg_info *info)
|
|||
pr_debug("couldn't add file to sysfs");
|
||||
goto out_free_attr;
|
||||
}
|
||||
/* notify userspace */
|
||||
kobject_uevent(hardidletimer_tg_kobj, KOBJ_ADD);
|
||||
|
||||
list_add(&info->timer->entry, &hardidletimer_tg_list);
|
||||
|
||||
|
|
|
@ -307,6 +307,8 @@ static int idletimer_tg_create(struct idletimer_tg_info *info)
|
|||
pr_debug("couldn't add file to sysfs");
|
||||
goto out_free_attr;
|
||||
}
|
||||
/* notify userspace */
|
||||
kobject_uevent(idletimer_tg_kobj, KOBJ_ADD);
|
||||
|
||||
list_add(&info->timer->entry, &idletimer_tg_list);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue