函数逻辑报告 |
Source Code:lib\xz\xz_dec_test.c |
Create Date:2022-07-27 08:06:57 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Decode the data given to us from the userspace. CRC32 of the uncompressed* data is calculated and is printed at the end of successful decoding. The* uncompressed data isn't stored anywhere for further use.* The
函数原型:static ssize_t xz_dec_test_write(struct file *file, const char __user *buf, size_t size, loff_t *pos)
返回类型:ssize_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct file * | file | |
| const char __user * | buf | |
| size_t | size | |
| loff_t * | pos |
| 108 | 如果size大于0则printk(formational Device name to pass to register_chrdev(). ": %zu bytes of garbage at the end of the file\n", size) |
| 113 | 返回:负ENOSPC |
| 116 | printk(formational Device name to pass to register_chrdev(). ": decoding %zu bytes of input\n", size) |
| 123 | in_pos等于0 |
| 124 | in_size等于两数取小(remaining, Input and output buffers. The input buffer is used as a temporary safe* place for the data coming from the userspace.的长度) |
| 132 | out_pos等于0 |
| 139 | printk(formational Device name to pass to register_chrdev(). ": XZ_OK\n") |
| 140 | 返回:size |
| 143 | printk(formational Device name to pass to register_chrdev(). ": XZ_STREAM_END, CRC32 = 0x%08X\n", ~CRC32 of uncompressed data. This is used to give the user a simple way* to check that the decoder produces correct output.) |
| 148 | printk(formational Device name to pass to register_chrdev(). ": XZ_MEMLIMIT_ERROR\n") |
| 149 | 退出 |
| 152 | printk(formational Device name to pass to register_chrdev(). ": XZ_FORMAT_ERROR\n") |
| 153 | 退出 |
| 156 | printk(formational Device name to pass to register_chrdev(). ": XZ_OPTIONS_ERROR\n") |
| 157 | 退出 |
| 160 | printk(formational Device name to pass to register_chrdev(). ": XZ_DATA_ERROR\n") |
| 161 | 退出 |
| 164 | printk(formational Device name to pass to register_chrdev(). ": XZ_BUF_ERROR\n") |
| 165 | 退出 |
| 167 | 默认 |
| 168 | printk(formational Device name to pass to register_chrdev(). ": Bug detected!\n") |
| 169 | 退出 |
| 172 | 返回:负EIO |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |