Function report | 
Source Code:lib\xz\xz_dec_test.c | 
Create Date:2022-07-28 07:08:59 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name: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
Proto:static ssize_t xz_dec_test_write(struct file *file, const char __user *buf, size_t size, loff_t *pos)
Type:ssize_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct file * | file | |
| const char __user * | buf | |
| size_t | size | |
| loff_t * | pos | 
| 108 | If size > 0 Then printk(formational Device name to pass to register_chrdev(). ": %zu bytes of garbage at the end of the file\n", size) | 
| 113 | Return -ENOSPC | 
| 116 | printk(formational Device name to pass to register_chrdev(). ": decoding %zu bytes of input\n", size) | 
| 123 | in_pos = 0 | 
| 132 | out_pos = 0 | 
| 139 | printk(formational Device name to pass to register_chrdev(). ": XZ_OK\n") | 
| 140 | Return 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 | Break | 
| 152 | printk(formational Device name to pass to register_chrdev(). ": XZ_FORMAT_ERROR\n") | 
| 153 | Break | 
| 156 | printk(formational Device name to pass to register_chrdev(). ": XZ_OPTIONS_ERROR\n") | 
| 157 | Break | 
| 160 | printk(formational Device name to pass to register_chrdev(). ": XZ_DATA_ERROR\n") | 
| 161 | Break | 
| 164 | printk(formational Device name to pass to register_chrdev(). ": XZ_BUF_ERROR\n") | 
| 165 | Break | 
| 167 | Default | 
| 168 | printk(formational Device name to pass to register_chrdev(). ": Bug detected!\n") | 
| 169 | Break | 
| 172 | Return -EIO | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |