From: Michal MalĂ˝ Date: Sun, 16 Aug 2015 13:27:03 +0000 (+0200) Subject: Export klgd_free_command() X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=13b8c5d5a19cc1d3f4aa5d982a70b5495148dcda;p=KLGD.git Export klgd_free_command() --- diff --git a/klgd.c b/klgd.c index 271bef1..78b5aca 100644 --- a/klgd.c +++ b/klgd.c @@ -222,13 +222,14 @@ out: printk(KERN_NOTICE "KLGD/WQ: --- WQ complete ---\n"); } -static void klgd_free_command(const struct klgd_command *cmd) +void klgd_free_command(const struct klgd_command *cmd) { if (cmd) { kfree(cmd->bytes); kfree(cmd); } } +EXPORT_SYMBOL_GPL(klgd_free_command); void klgd_free_stream(struct klgd_command_stream *s) { diff --git a/klgd.h b/klgd.h index 3134656..b10e9c1 100644 --- a/klgd.h +++ b/klgd.h @@ -43,6 +43,7 @@ struct klgd_command_stream * klgd_alloc_stream(void); int klgd_append_cmd(struct klgd_command_stream *target, const struct klgd_command *cmd); int klgd_append_stream(struct klgd_command_stream *target, const struct klgd_command_stream *source); void klgd_deinit(struct klgd_main *ctx); +void klgd_free_command(const struct klgd_command *cmd); void klgd_free_stream(struct klgd_command_stream *s); int klgd_init(struct klgd_main *ctx, void *dev_ctx, int (*callback)(void *, const struct klgd_command_stream *), const unsigned long plugin_count); void klgd_lock_plugins(struct mutex *lock);