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_*
精彩评论