iPXE
|
gzip compressed images More...
#include <stdlib.h>
#include <errno.h>
#include <assert.h>
#include <ipxe/deflate.h>
#include <ipxe/uaccess.h>
#include <ipxe/image.h>
#include <ipxe/zlib.h>
#include <ipxe/gzip.h>
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static int | gzip_extract (struct image *image, struct image *extracted) |
Extract gzip image. More... | |
static int | gzip_probe (struct image *image) |
Probe gzip image. More... | |
struct image_type gzip_image_type | __image_type (PROBE_NORMAL) |
gzip image type More... | |
gzip compressed images
Definition in file gzip.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
Extract gzip image.
image | Image |
extracted | Extracted image |
rc | Return status code |
Definition at line 48 of file gzip.c.
References assert(), copy_from_user(), gzip_crc_header::crc, image::data, DBGC, DEFLATE_RAW, EINVAL, extra, ena_aq_header::flags, GZIP_FL_COMMENT, GZIP_FL_EXTRA, GZIP_FL_HCRC, GZIP_FL_NAME, header, image_set_len(), in, le16_to_cpu, le32_to_cpu, len, image::len, gzip_footer::len, memchr_user(), offset, rc, strerror(), userptr_add(), and zlib_deflate().
|
static |
Probe gzip image.
image | gzip image |
rc | Return status code |
Definition at line 140 of file gzip.c.
References copy_from_user(), cpu_to_be16, image::data, DBGC, ENOEXEC, GZIP_MAGIC, header, and image::len.
struct image_type gzip_image_type __image_type | ( | PROBE_NORMAL | ) |
gzip image type