Home:ALL Converter>linux kernel module data compression

linux kernel module data compression

Ask Time:2018-03-03T21:41:33         Author:Massimo

Json Formatter

linux 2.6 I am writing a LKM. I need to compress and decompress on the fly many different chunks of text.

I prefer to call kernel api, avoiding to include and compile external libraries.

Are there kernel Api to compress and decompress memory ? source and destination buffers can be both in kernel memory or one in kernel the other in user space.

Author:Massimo,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/49084767/linux-kernel-module-data-compression
yy