函数逻辑报告 |
Source Code:fs\pipe.c |
Create Date:2022-07-29 10:34:16 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:pipe_read
函数原型:static ssize_t pipe_read(struct kiocb *iocb, struct iov_iter *to)
返回类型:ssize_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct kiocb * | iocb | |
| struct iov_iter * | to |
| 286 | total_len等于iov_iter_count(to) |
| 293 | 如果此条件成立可能性小(为编译器优化)(total_len == 0)则返回:0 |
| 296 | ret等于0 |
| 297 | __pipe_lock(pipe) |
| 307 | was_full等于pipe_full - Return true if the pipe is full*@head: The pipe ring head pointer*@tail: The pipe ring tail pointer*@limit: The maximum amount of slots available. |
| 308 | 循环 |
| 322 | error等于pipe_buf_confirm - verify contents of the pipe buffer*@pipe: the pipe that the buffer belongs to*@buf: the buffer to confirm |
| 323 | 如果error则 |
| 330 | 如果此条件成立可能性小(为编译器优化)(written < chars)则 |
| 340 | 如果flags按位与ad() as a packet 则 |
| 345 | 如果非len则 |
| 363 | 如果f_flags按位与O_NONBLOCK则 |
| 367 | __pipe_unlock(pipe) |
| 386 | 如果此条件成立可能性小(为编译器优化)(was_full)则 |
| 387 | wake_up_interruptible_sync_poll( & wait, EPOLLOUT | EPOLLWRNORM) |
| 400 | __pipe_lock(pipe) |
| 403 | __pipe_unlock(pipe) |
| 405 | 如果was_full则 |
| 406 | wake_up_interruptible_sync_poll( & wait, EPOLLOUT | EPOLLWRNORM) |
| 409 | 如果ret大于0则file_accessed(filp) |
| 411 | 返回:ret |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |