函数逻辑报告

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

函数名称:rw_verify_area

函数原型:int rw_verify_area(int read_write, struct file *file, const loff_t *ppos, size_t count)

返回类型:int

参数:

类型参数名称
intread_write
struct file *file
const loff_t *ppos
size_tcount
368  retval等于负EINVAL
370  inode等于file_inode(file)
371  如果此条件成立可能性小(为编译器优化)((ssize_t)count < 0)则返回:retval
378  如果ppos
379  pos等于ppos
382  如果非unsigned_offsets(file)则返回:retval
384  如果count大于等于负pos则返回:负EOVERFLOW
387  如果非unsigned_offsets(file)则返回:retval
392  retval等于检查锁冲突
394  如果retval小于0则返回:retval
399  返回:security_file_permission(file, read_write == generic data direction definitions ? MAY_READ : MAY_WRITE)
调用者
名称描述
vfs_read
vfs_write
do_iter_read
do_iter_write
do_sendfile
vfs_copy_file_rangepy_file_range() differs from regular file read and write in that it* specifically allows return partial success. When it does so is up to* the copy_file_range method.
do_splice_toAttempt to initiate a splice from a file to a pipe.
do_splice_directdo_splice_direct - splices data directly between two files*@in: file to splice from*@ppos: input file offset*@out: file to splice to*@opos: output file offset*@len: number of bytes to splice*@flags: splice modifier flags* Description:
do_spliceDetermine where to splice to/from.
aio_read
aio_write
io_read
io_write