Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d6aa176 authored by Devi Sandeep Endluri V V's avatar Devi Sandeep Endluri V V Committed by Gerrit - the friendly Code Review server
Browse files

netfilter:Notify user space on creating sysfs file



uevent indication is required to notify the user space
on creation of sysfs file entry.
This helps in creating specific sysfs labeled entries
for newly created file which are module specific.

Change-Id: I576fa77158445ced6d5efb93b5d724d75f30b03f
CRs-Fixed: 2056628
Acked-by: default avatarManoj Basapathi <manojbm@qti.qualcomm.com>
Signed-off-by: default avatarTejaswi Tanikella <tejaswit@codeaurora.org>
parent 4d7cba74
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -180,6 +180,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);

+2 −0
Original line number Diff line number Diff line
@@ -301,6 +301,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);