函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:COMPAT_SYSCALL_DEFINE4

函数原型:COMPAT_SYSCALL_DEFINE4(vmsplice, int, fd, const struct compat_iovec __user *, iov32, unsigned int, nr_segs, unsigned int, flags)

返回类型:

参数:

1405  iov等于iovstack
1411  f等于fdget(fd)
1412  error等于vmsplice_type(f, & type)
1413  如果error则返回:error
1416  error等于compat_import_iovec(type, iov32, nr_segs, ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(iovstack), & iov, & iter)
1418  如果error大于等于0则
1419  error等于Note that vmsplice only really supports true splicing _from_ user memory* to a pipe, not the other way around. Splicing from user memory is a simple* operation that can be supported without any funky alignment restrictions* or nasty vm tricks
1420  释放内存
1422  fdput(f)
1423  返回:error