函数逻辑报告 |
Source Code:fs\read_write.c |
Create Date:2022-07-29 10:31:24 |
Last Modify:2020-03-18 10:18:51 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:w_copy_check_uvector() - Copy an array of &struct iovec from userspace* into the kernel and check that it is valid.*@type: One of %CHECK_IOVEC_ONLY, %READ, or %WRITE.*@uvector: Pointer to the userspace array.
函数原型:ssize_t rw_copy_check_uvector(int type, const struct iovec __user *uvector, unsigned long nr_segs, unsigned long fast_segs, struct iovec *fast_pointer, struct iovec **ret_pointer)
返回类型:ssize_t
参数:
类型 | 参数 | 名称 |
---|---|---|
int | type | |
const struct iovec __user * | uvector | |
unsigned long | nr_segs | |
unsigned long | fast_segs | |
struct iovec * | fast_pointer | |
struct iovec ** | ret_pointer |
771 | iov等于fast_pointer |
778 | 如果nr_segs恒等于0则 |
787 | 如果nr_segs大于UIO_MAXIOV则 |
798 | 如果copy_from_user(iov, uvector, nr_segs * uvector的长度)则 |
812 | ret等于0 |
815 | len等于 Must be size_t (1003.1g) |
819 | 如果len小于0则 |
828 | 如果len大于MAX_RW_COUNT减ret则 |
829 | len等于MAX_RW_COUNT减ret |
830 | Must be size_t (1003.1g) 等于len |
834 | out : |
835 | ret_pointer等于iov |
836 | 返回:ret |
名称 | 描述 |
---|---|
import_iovec | mport_iovec() - Copy an array of &struct iovec from userspace* into the kernel, check that it is valid, and initialize a new* &struct iov_iter iterator to access it.*@type: One of %READ or %WRITE.*@uvector: Pointer to the userspace array. |
process_vm_rw | process_vm_rw - check iovecs before calling core routine*@pid: PID of process to read/write from/to*@lvec: iovec array specifying where to copy to/from locally*@liovcnt: size of lvec array*@rvec: iovec array specifying where to copy to/from in the other |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |