MCPcopy Create free account
hub / github.com/F-Stack/f-stack / spl_zlib_init

Function spl_zlib_init

freebsd/contrib/openzfs/module/os/linux/spl/spl-zlib.c:194–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192EXPORT_SYMBOL(z_uncompress);
193
194int
195spl_zlib_init(void)
196{
197 int size;
198
199 size = MAX(zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL),
200 zlib_inflate_workspacesize());
201
202 zlib_workspace_cache = kmem_cache_create(
203 "spl_zlib_workspace_cache",
204 size, 0, NULL, NULL, NULL, NULL, NULL,
205 KMC_KVMEM);
206 if (!zlib_workspace_cache)
207 return (1);
208
209 return (0);
210}
211
212void
213spl_zlib_fini(void)

Callers 1

spl_initFunction · 0.85

Calls 1

kmem_cache_createFunction · 0.85

Tested by

no test coverage detected