函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\ioctl.c Create Date:2022-07-29 10:36:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ioctl_file_clone

函数原型:static long ioctl_file_clone(struct file *dst_file, unsigned long srcfd, u64 off, u64 olen, u64 destoff)

返回类型:long

参数:

类型参数名称
struct file *dst_file
unsigned longsrcfd
u64off
u64olen
u64destoff
225  src_file等于fdget(srcfd)
229  如果非file则返回:负EBADF
231  ret等于负EXDEV
232  如果mnt不等于mnt则转到:fdput
234  cloned等于vfs_clone_file_range(file, off, dst_file, destoff, olen, 0)
236  如果cloned小于0则ret等于cloned
238  否则如果olencloned不等于olenret等于负EINVAL
240  否则ret等于0
242  fdput :
243  fdput(src_file)
244  返回:ret
调用者
名称描述
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.