函数逻辑报告 |
Source Code:fs\seq_file.c |
Create Date:2022-07-29 10:40:03 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:seq_read - ->read() method for sequential files.*@file: the file to read from*@buf: the buffer to read to*@size: the maximum number of bytes to read*@ppos: the current position in the file* Ready-made ->f_op->read()
函数原型:ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos)
返回类型:ssize_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct file * | file | |
| char __user * | buf | |
| size_t | size | |
| loff_t * | ppos |
| 156 | copied等于0 |
| 159 | err等于0 |
| 161 | mutex_lock( & lock) |
| 180 | 如果ppos恒等于0则 |
| 187 | 如果此条件成立可能性小(为编译器优化)( * ppos != read_pos)则 |
| 190 | 如果err则 |
| 197 | 否则 |
| 203 | 如果非buf则 |
| 209 | 如果count则 |
| 223 | from等于0 |
| 225 | 当1循环 |
| 232 | 如果此条件成立可能性小(为编译器优化)(err)则count等于0 |
| 234 | 如果此条件成立可能性小(为编译器优化)(!count)则 |
| 242 | count等于0 |
| 243 | buf等于seq_buf_alloc(size <<= 1) |
| 246 | version等于0 |
| 250 | count等于0 |
| 251 | 转到:Done |
| 252 | Fill : |
| 254 | 当1循环 |
| 271 | 如果此条件成立可能性大(为编译器优化)(err <= 0)则退出 |
| 277 | err等于copy_to_user(buf, buf, n) |
| 283 | Done : |
| 286 | 否则 |
| 292 | 返回:copied |
| 293 | Enomem : |
| 295 | 转到:Done |
| 296 | Efault : |
| 298 | 转到:Done |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |