lib/zlib_dfltcc/dfltcc_deflate.h

Source file repositories/reference/linux-study-clean/lib/zlib_dfltcc/dfltcc_deflate.h

File Facts

System
Linux kernel
Corpus path
lib/zlib_dfltcc/dfltcc_deflate.h
Extension
.h
Size
535 bytes
Lines
22
Domain
Kernel Services
Bucket
lib
Inferred role
Kernel Services: implementation source
Status
source implementation candidate

Why This File Exists

Shared kernel service surface used by multiple subsystems, including helpers, cryptography, virtualization support, and async I/O infrastructure.

Dependency Surface

Detected Declarations

Annotated Snippet

// SPDX-License-Identifier: Zlib
#ifndef DFLTCC_DEFLATE_H
#define DFLTCC_DEFLATE_H

#include "dfltcc.h"

/* External functions */
int dfltcc_can_deflate(z_streamp strm);
int dfltcc_deflate(z_streamp strm,
                   int flush,
                   block_state *result);
void dfltcc_reset_deflate_state(z_streamp strm);

#define DEFLATE_RESET_HOOK(strm) \
    dfltcc_reset_deflate_state((strm))

#define DEFLATE_HOOK dfltcc_deflate

#define DEFLATE_NEED_CHECKSUM(strm) (!dfltcc_can_deflate((strm)))

#endif /* DFLTCC_DEFLATE_H */

Annotation

Implementation Notes