函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\read_write.c Create Date:2022-07-29 10:31:22
Last Modify:2020-03-18 10:18:51 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:new_sync_read

函数原型:static ssize_t new_sync_read(struct file *filp, char __user *buf, size_t len, loff_t *ppos)

返回类型:ssize_t

参数:

类型参数名称
struct file *filp
char __user *buf
size_tlen
loff_t *ppos
405  struct iovec iov = { BSD uses caddr_t (1003.1g requires void *) = buf, Must be size_t (1003.1g) = len}
410  init_sync_kiocb( & kiocb, filp)
411  文件偏移等于如果pposppos否则0
412  iov_iter_init( & iter, generic data direction definitions , & iov, 1, len)
414  ret等于call_read_iter(filp, & kiocb, & iter)
415  BUG_ON(ret == - cb queued, will get completion event )
416  如果pposppos等于文件偏移
418  返回:ret
调用者
名称描述
__vfs_read