Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\read_write.c Create Date:2022-07-28 20:01:20
Last Modify:2020-03-18 10:18:51 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:rw_verify_area

Proto:int rw_verify_area(int read_write, struct file *file, const loff_t *ppos, size_t count)

Type:int

Parameter:

TypeParameterName
intread_write
struct file *file
const loff_t *ppos
size_tcount
368  retval = -EINVAL
370  inode = file_inode(file)
371  If Value for the false possibility is greater at compile time((ssize_t)count < 0) Then Return retval
378  If ppos Then
379  pos = ppos
382  If Not unsigned_offsets(file) Then Return retval
384  If count >= -pos Then Return -EOVERFLOW
387  If Not unsigned_offsets(file) Then Return retval
394  If retval < 0 Then Return retval
399  Return security_file_permission(file, read_write == generic data direction definitions ? MAY_READ : MAY_WRITE)
Caller
NameDescribe
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