}
EXPORT_SYMBOL_GPL(klgd_register_plugin);
+void klgd_unlock_plugins(struct mutex *lock)
+{
+ mutex_unlock(lock);
+ printk(KERN_DEBUG "KLGD: Plugins state unlocked, NOT scheduled\n");
+}
+EXPORT_SYMBOL_GPL(klgd_unlock_plugins);
+
+
void klgd_unlock_plugins_sched(struct mutex *lock)
{
struct klgd_main_private *priv = container_of(lock, struct klgd_main_private, plugins_lock);
klgd_schedule_update(priv);
mutex_unlock(lock);
- printk(KERN_DEBUG "KLGD: Plugins state unlocked\n");
+ printk(KERN_DEBUG "KLGD: Plugins state unlocked, rescheduled\n");
}
EXPORT_SYMBOL_GPL(klgd_unlock_plugins_sched);
void klgd_lock_plugins(struct mutex *lock);
void klgd_notify_commands_sent(struct klgd_main *ctx);
int klgd_register_plugin(struct klgd_main *ctx, const size_t idx, struct klgd_plugin *plugin);
+void klgd_unlock_plugins(struct mutex *lock);
void klgd_unlock_plugins_sched(struct mutex *lock);