函数逻辑报告 |
Source Code:security\apparmor\policy_unpack.c |
Create Date:2022-07-27 21:35:51 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:deflate_compress
函数原型:static int deflate_compress(const char *src, size_t slen, char **dst, size_t *dlen)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
const char * | src | |
size_t | slen | |
char ** | dst | |
size_t * | dlen |
1054 | stglen等于This function is equivalent to deflateEnd followed by deflateInit,but does not free and reallocate all the internal compression state |
1061 | memory allocated for this stream 等于kvzalloc(zlib_deflate_workspacesize(32K LZ77 window , Maximum value for memLevel in deflateInit2 ), GFP_KERNEL) |
1064 | 如果非 memory allocated for this stream 则返回:负ENOMEM |
1067 | error等于This function adds the data at next_in (avail_in bytes) to the outputhistory without performing any output( & strm, aa_g_rawdata_compression_level) |
1070 | 转到:fail_deflate_init |
1073 | stgbuf等于kvzalloc(stglen, GFP_KERNEL) |
1074 | 如果非stgbuf则 |
1076 | 转到:fail_stg_alloc |
1079 | next input byte 等于src |
1084 | error等于zlib_deflate( & strm, Z_FINISH) |
1085 | 如果error不等于Z_STREAM_END则 |
1087 | 转到:fail_deflate |
1089 | error等于0 |
1093 | 如果dstbuf则 |
1105 | 如果非dstbuf则 |
1107 | 转到:fail_deflate |
1113 | fail_stg_alloc : |
1114 | zlib_deflateEnd( & strm) |
1115 | fail_deflate_init : |
1117 | 返回:error |
1119 | fail_deflate : |
1121 | 转到:fail_stg_alloc |
名称 | 描述 |
---|---|
compress_loaddata |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |