开发者

Zlib Kernel Module

开发者 https://www.devze.com 2023-04-04 09:17 出处:网络
I a开发者_如何学Pythonm trying to implement a kernel module which uses zlib, so is there any Zlib module available for linux-2.6.17.8?.

I a开发者_如何学Pythonm trying to implement a kernel module which uses zlib, so is there any Zlib module available for linux-2.6.17.8?.

If I need to convert the source files of zlib to kernel space I need to replace malloc, function calls, assertions etc?


It is already in the Linux kernel. See include/linux/zlib.h; this has been in the Git tree since its initial conversion (at Linux 2.6.12).

You can git grep to find examples of usages, such as in ppp_deflate.c.


The kernel already as support for zlib compression (at least for decompressing itself).

Look into ./include/linux/zlib.h and lib/zlib_*

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号