Pull x86 boot updates from Ingo Molnar: "The main change in this cycle was to add support for ZSTD-compressed kernel and initrd images. ZSTD has a very fast decompressor, yet it compresses better than gzip" * tag 'x86-boot-2020-08-03' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: Documentation: dontdiff: Add zstd compressed files .gitignore: Add ZSTD-compressed files x86: Add support for ZSTD compressed kernel x86: Bump ZO_z_extra_bytes margin for zstd usr: Add support for zstd compressed initramfs init: Add support for zstd compressed kernel lib: Add zstd support to decompress lib: Prepare zstd for preboot environment, improve performance
Showing the changes to include/linux (1 of 21 files). Show all
Unified · Split
| @@ -0,0 +1,11 @@ | ||
| 1 | +/* SPDX-License-Identifier: GPL-2.0 */ | |
| 2 | +#ifndef LINUX_DECOMPRESS_UNZSTD_H | |
| 3 | +#define LINUX_DECOMPRESS_UNZSTD_H | |
| 4 | + | |
| 5 | +int unzstd(unsigned char *inbuf, long len, | |
| 6 | + long (*fill)(void*, unsigned long), | |
| 7 | + long (*flush)(void*, unsigned long), | |
| 8 | + unsigned char *output, | |
| 9 | + long *pos, | |
| 10 | + void (*error_fn)(char *x)); | |
| 11 | +#endif | |