Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:remap_verify_area

Proto:static int remap_verify_area(struct file *file, loff_t pos, loff_t len, bool write)

Type:int

Parameter:

TypeParameterName
struct file *file
loff_tpos
loff_tlen
boolwrite
1755  inode = file_inode(file)
1757  If Value for the false possibility is greater at compile time(pos < 0 || len < 0) Then Return -EINVAL
1760  If Value for the false possibility is greater at compile time((loff_t)(pos + len) < 0) Then Return -EINVAL
1763  If Value for the false possibility is greater at compile time(i_flctx && mandatory_lock(inode)) Then
1764  end = If len Then pos + len - 1 Else OFFSET_MAX
1767  retval = Check for a conflicting lock
1769  If retval < 0 Then Return retval
1773  Return security_file_permission(file, write ? MAY_WRITE : MAY_READ)
Caller
NameDescribe
do_clone_file_range
vfs_dedupe_file_range_one
vfs_dedupe_file_range