Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\ioctl.c Create Date:2022-07-28 20:06:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ioctl_file_clone

Proto:static long ioctl_file_clone(struct file *dst_file, unsigned long srcfd, u64 off, u64 olen, u64 destoff)

Type:long

Parameter:

TypeParameterName
struct file *dst_file
unsigned longsrcfd
u64off
u64olen
u64destoff
225  src_file = fdget(srcfd)
229  If Not file Then Return -EBADF
231  ret = -EXDEV
232  If mnt != mnt Then Go to fdput
234  cloned = vfs_clone_file_range(file, off, dst_file, destoff, olen, 0)
236  If cloned < 0 Then ret = cloned
238  Else if olen && cloned != olen Then ret = -EINVAL
240  Else ret = 0
242  fdput :
243  fdput(src_file)
244  Return ret
Caller
NameDescribe
ioctl_file_clone_range
do_vfs_ioctlWhen you add any new common ioctls to the switches above and below* please update compat_sys_ioctl() too.* do_vfs_ioctl() is not for drivers and not intended to be EXPORT_SYMBOL()'d.* It's just a simple helper for sys_ioctl and compat_sys_ioctl.