#include <linux/kernel.h> #include <linux/lz4.h> #include <linux/slab.h> #include <linux/vmalloc.h> #include "backend_lz4.h" struct lz4_ctx { … }; static void lz4_release_params(struct zcomp_params *params) { … } static int lz4_setup_params(struct zcomp_params *params) { … } static void lz4_destroy(struct zcomp_ctx *ctx) { … } static int lz4_create(struct zcomp_params *params, struct zcomp_ctx *ctx) { … } static int lz4_compress(struct zcomp_params *params, struct zcomp_ctx *ctx, struct zcomp_req *req) { … } static int lz4_decompress(struct zcomp_params *params, struct zcomp_ctx *ctx, struct zcomp_req *req) { … } const struct zcomp_ops backend_lz4 = …;